public ActionResult BranchEdit(int officeId) { ViewBag.officeList = _officeService.GetOfficeData(); ViewBag.officeTypeList = _officeTypeService.GetOfficeTypes(); OfficeDTOs officebyID = _officeService.GetOfficeById(officeId); officebyID.EmployeeList = _officeService.GetEmployeeList(); officebyID.RemoteList = _officeService.GetRemoteList(); return(View(officebyID)); }
public Task <Office> GetAsync(int id, IRequestContext context, CancellationToken cancellation) { var office = _officeService.GetOfficeById(id); return(Task.FromResult(office)); }