public async Task <ActionResult <AtResult <AccountObjectDmOuput_EditOrDetail> > > GetAccountObject_Edit(string idAccount) { if (await CheckPermission(_context)) { try { var accountObject = await _logicAccountObj.GetAccountObject_Edit(idAccount, UserId); if (accountObject == null) { return(new AtResult <AccountObjectDmOuput_EditOrDetail>(AtNotify.NotFound)); } var listRole = await _logicRole.GetListCombobox_RoleAsyns(); var listDepartment = await _logicDepartment.GetListCombobox_DepartmentAsyns(); accountObject.ListDepartment = new List <AtDepartmentDm.AtDepartmentDmComboboxOutput>(listDepartment); accountObject.ListRole = new List <AtRoleDm.AtRoleDmComboboxOutput>(listRole); return(new AtResult <AccountObjectDmOuput_EditOrDetail>(accountObject)); } catch (Exception ex) { throw ex; } } else { return(new AtResult <AccountObjectDmOuput_EditOrDetail>(AtNotify.KhongCoQuyenTruyCap)); } }
public async Task <ActionResult <AtResult <List <AtRoleDmComboboxOutput> > > > GetListComboboxRole() { var listRole = await _logicRole.GetListCombobox_RoleAsyns(); return(new AtResult <List <AtRoleDmComboboxOutput> >(listRole)); }