using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using YBDevice.Application;
using YBDevice.Application.SystemInfo;
using YBDevice.Entity;
namespace YBDevice.NWeb.Pages.Role
{
///
/// ½ÇÉ«±à¼
///
public class EditModel : BaseModel
{
public YB_nRole role = new YB_nRole();
public List list = new List();
private ISystemService _systemService;
public EditModel(ISystemService systemService)
{
_systemService = systemService;
}
public async Task OnGetAsync(Guid id)
{
list = await _systemService.GetMenuActionListAsync(id);
if (id != Guid.Empty)
{
role = await _systemService.DetailRoleAsync(id);
}
}
}
}