Exemplo n.º 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));
        }
Exemplo n.º 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));
        }