Пример #1
0
        public ActionResult GetShiftDetailsForUsers(string RequestMenuUser)
        {
            List <ShiftEmployees> shiftEmployees = null;

            using (var client = new ShiftClient())
            {
                shiftEmployees = client.GetShiftDetailsForUsers(this.UserId, RequestMenuUser);
            }

            return(PartialView("AddOrEditShiftAllocation", shiftEmployees));
        }
Пример #2
0
        public ActionResult AdminShiftAllocation()
        {
            ViewBag.RequestLevelPerson = "Admin";
            EmployeeShifts shiftEmployees = new EmployeeShifts();

            using (var client = new ShiftClient())
            {
                shiftEmployees.Shifts         = client.GetShiftMaster().OrderBy(p => p.FromTime).ToList();
                shiftEmployees.shiftEmployees = client.GetShiftDetailsForUsers(this.UserId, "Admin");
            }
            return(View("ShiftAllocation", shiftEmployees));
        }