public ActionResult Profile(int employeeId) { var employee = _employeeManager.GetById(employeeId); EmployeeVM employeeVm = Mapper.Map <EmployeeVM>(employee); employeeVm.Employees = _employeeManager.GetAll(); BranchManager branchManager = new BranchManager(); employeeVm.BranchList = branchManager.GetBranchList(); return(View(employeeVm)); }
// GET: Branch public ActionResult Index() { branchVm.Branches = _branchBll.GetBranchList().OrderByDescending(x => x.Date).ToList(); return(View(branchVm.Branches)); }
//[AuthorizeUser(RoleModule.Agent, Function.View)] public ActionResult Index(AgentViewModel aViewModel) { aViewModel.BranchInfoList = _branchManager.GetBranchList(); return(View("Index", aViewModel)); }
//[AuthorizeUser(RoleModule.Warehouse, Function.View)] public ActionResult Index(WarehouseViewModel wViewModel) { wViewModel.BranchInfoList = _branchManager.GetBranchList(); return(View("Index", wViewModel)); }