public ActionResult AddAnEvent(schedule _addEvent)
        {
            var addAnEvent = _scheduleRepository.Add(_addEvent);

            if ((bool)addAnEvent == true)
            {
                string message = "Event successfully added! Click here to return to the <a href=/schedule/GetAdminSchedule>Library Schedule Admin Area</a>.";

                return Content(message);

            }
            else
            {
                string message = "An unexpected error has occurred.";

                return Content(message);
            }
        }
        public JsonResult DeleteRegisteree(schedule json)
        {
            var deleteRegisteree = _scheduleRepository.Delete(json);

            if ((bool)deleteRegisteree == true)
            {
                string message = "Registerant Deleted!";
                return Json(message, JsonRequestBehavior.AllowGet);
            }
            else
            {
                string message = "An error has occurred!";
                return Json(message, JsonRequestBehavior.AllowGet);
            }
        }
        public ActionResult UpdateGetEvent(schedule objContent)
        {
            var updateGetEvent = _scheduleRepository.Edit(objContent);

            return Redirect("/schedule/GetAdminSchedule");
        }