示例#1
0
        public ActionResult UpdateStaff(int IntStaffID, int IntMemberID)
        {
            Staff updStaff = new Staff
            {
                IntStaffID  = IntStaffID,
                IntMemberID = IntMemberID
            };

            bool success = StaffDAL.UpdateStaff(updStaff);

            StaffVM model = new StaffVM()
            {
                LstStaff      = StaffDAL.GetAllStaff(),
                LstAllMembers = MembersDAL.GetAllMembers(),
                LstAllShows   = ShowsDAL.GetAllShows()
            };

            return(PartialView("CRUDPartials/_Staff", model));
        }