public IActionResult AssignUser(int id, string s, int page = 1) { TempData["Active"] = TempDataInfo.WorkOrder; int totalPage; ViewBag.ActivePage = page; ViewBag.Search = s; var personels = _mapper.Map <List <AppUserListDto> >(_appUserService.GetRoleNonAdmin(out totalPage, s, page)); ViewBag.TotalPage = totalPage; ViewBag.Personels = personels; return(View(_mapper.Map <WorkListDto>(_workService.FindByIdWithPriority(id)))); }
public IActionResult AddAction(int id) { TempData["Active"] = TempDataInfo.WorkOrder; ActionAddDto model = new ActionAddDto { WorkId = id, Work = _workService.FindByIdWithPriority(id) }; return(View(model)); }