コード例 #1
0
        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));
        }
コード例 #2
0
        public Task <Office> GetAsync(int id, IRequestContext context, CancellationToken cancellation)
        {
            var office = _officeService.GetOfficeById(id);

            return(Task.FromResult(office));
        }