mirror of https://github.com/abpframework/abp
Merge pull request #3579 from abpframework/maliming/IActionResult
Use IActionResult as the return value of the page method in the module.pull/3665/head
commit
cf44b8bfcc
@ -1,13 +1,14 @@
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace Volo.ClientSimulation.Pages.ClientSimulation
|
||||
{
|
||||
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 Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Volo.Abp.Identity.Web.Pages.Identity.Roles
|
||||
{
|
||||
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 Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace Volo.Abp.TenantManagement.Web.Pages.TenantManagement.Tenants
|
||||
{
|
||||
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