mirror of https://github.com/abpframework/abp.git
Browse Source
Use IActionResult as the return value of the page method in the module.pull/3665/head
committed by
GitHub
34 changed files with 100 additions and 65 deletions
@ -1,13 +1,14 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
using Microsoft.AspNetCore.Mvc.RazorPages; |
using Microsoft.AspNetCore.Mvc.RazorPages; |
||||
|
|
||||
namespace Volo.ClientSimulation.Pages.ClientSimulation |
namespace Volo.ClientSimulation.Pages.ClientSimulation |
||||
{ |
{ |
||||
public class IndexModel : PageModel |
public class IndexModel : PageModel |
||||
{ |
{ |
||||
public async Task OnGetAsync() |
public virtual Task<IActionResult> OnGetAsync() |
||||
{ |
{ |
||||
|
return Task.FromResult<IActionResult>(Page()); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,17 +1,18 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
|
||||
namespace Volo.Abp.Identity.Web.Pages.Identity.Roles |
namespace Volo.Abp.Identity.Web.Pages.Identity.Roles |
||||
{ |
{ |
||||
public class IndexModel : IdentityPageModel |
public class IndexModel : IdentityPageModel |
||||
{ |
{ |
||||
public virtual Task OnGetAsync() |
public virtual Task<IActionResult> OnGetAsync() |
||||
{ |
{ |
||||
return Task.CompletedTask; |
return Task.FromResult<IActionResult>(Page()); |
||||
} |
} |
||||
|
|
||||
public virtual Task OnPostAsync() |
public virtual Task<IActionResult> OnPostAsync() |
||||
{ |
{ |
||||
return Task.CompletedTask; |
return Task.FromResult<IActionResult>(Page()); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,17 +1,18 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
|
||||
namespace Volo.Abp.Identity.Web.Pages.Identity.Users |
namespace Volo.Abp.Identity.Web.Pages.Identity.Users |
||||
{ |
{ |
||||
public class IndexModel : IdentityPageModel |
public class IndexModel : IdentityPageModel |
||||
{ |
{ |
||||
public virtual Task OnGetAsync() |
public virtual Task<IActionResult> OnGetAsync() |
||||
{ |
{ |
||||
return Task.CompletedTask; |
return Task.FromResult<IActionResult>(Page()); |
||||
} |
} |
||||
|
|
||||
public virtual Task OnPostAsync() |
public virtual Task<IActionResult> OnPostAsync() |
||||
{ |
{ |
||||
return Task.CompletedTask; |
return Task.FromResult<IActionResult>(Page()); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,18 +1,19 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
using Microsoft.AspNetCore.Mvc.RazorPages; |
using Microsoft.AspNetCore.Mvc.RazorPages; |
||||
|
|
||||
namespace Volo.Abp.TenantManagement.Web.Pages.TenantManagement.Tenants |
namespace Volo.Abp.TenantManagement.Web.Pages.TenantManagement.Tenants |
||||
{ |
{ |
||||
public class IndexModel : TenantManagementPageModel |
public class IndexModel : TenantManagementPageModel |
||||
{ |
{ |
||||
public virtual Task OnGetAsync() |
public virtual Task<IActionResult> OnGetAsync() |
||||
{ |
{ |
||||
return Task.CompletedTask; |
return Task.FromResult<IActionResult>(Page()); |
||||
} |
} |
||||
|
|
||||
public virtual Task OnPostAsync() |
public virtual Task<IActionResult> OnPostAsync() |
||||
{ |
{ |
||||
return Task.CompletedTask; |
return Task.FromResult<IActionResult>(Page()); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue