public async Task <IActionResult> MenuF1EditInterfaceData(string RegisterId, string UserId) { ModelMenuF1Edit_InterfaceData e = await _IDocMenuFService.MenuF1EditInterfaceDataAsync(RegisterId, UserId); if (e != null) { return(Ok(e)); } else { return(BadRequest()); } }
public async Task <ModelMenuF1Edit_InterfaceData> MenuF1EditInterfaceDataAsync(string RegisterId, string UserId) { ModelMenuF1Edit_InterfaceData resp = new ModelMenuF1Edit_InterfaceData(); resp.listfirstname = await GetAllFirstNameAsync(); resp.listfaculty = await GetAllFacultyAsync(); resp.UserData = await GetEditDataByRegisterId(UserId); resp.UserPermission = await _IRegisterUserRepository.GetPermissionPageAsync(RegisterId, "M023"); return(resp); }