public async Task <ModelMenuA2_InterfaceData> MenuA2InterfaceDataAsync(string RegisterId) { ModelMenuA2_InterfaceData resp = new ModelMenuA2_InterfaceData(); resp.ListLaboratoryRoom = new List <ModelSelectOption>(); resp.ListLaboratoryRoom = await GetAllLaboratoryRoomAsync(); resp.UserPermission = await _IRegisterUserRepository.GetPermissionPageAsync(RegisterId, "M004"); return(resp); }
public async Task <IActionResult> MenuA2InterfaceData(string RegisterId) { ModelMenuA2_InterfaceData e = await _IDocMenuAService.MenuA2InterfaceDataAsync(RegisterId); if (e != null) { return(Ok(e)); } else { return(BadRequest()); } }