Esempio n. 1
0
        public ActionResult RemoveCalendar(string id)
        {
            if (!Utitl.CheckUser(db, User.Identity.Name, "CheckIn", 1))
            {
                return(RedirectToAction("relogin", "home"));
            }

            var check = db.CalendarInfoes.Find(id);

            if (check == null)
            {
                return(RedirectToAction("error", "home"));
            }

            var actionRemove = db.calendar_remove(check.StaffId, check.CMonth, check.CYear);

            return(RedirectToAction("showcalendar", "checkin"));
        }