/* RESTORE GENRES WERE DELETED */ public ActionResult UnlockGenre(int ID) { GenreAction.Unlock_Genre(ID); RecordAction.Create_Record(CustomerAction.Find_Customer((int)Session["id"]).email, CustomerAction.Find_Customer((int)Session["id"]).email + " restorer genre" + GenreAction.Find_By_ID(ID).genre, DateTime.Now.Date); return(Redirect("~/Home/RestoreData")); }
/* Find Genre By ID */ public JsonResult GetdGenre(int ID) { return(Json(GenreAction.Find_By_ID(ID), JsonRequestBehavior.AllowGet)); }
/* DELETE GENRE */ public ActionResult DeleteGenre(int ID) { GenreAction.Lock_Genre(ID); RecordAction.Create_Record(CustomerAction.Find_Customer((int)Session["id"]).email, CustomerAction.Find_Customer((int)Session["id"]).email + " delete genre" + GenreAction.Find_By_ID(ID).genre, DateTime.Now.Date); return(Redirect("~/Book/BookManager/" + Session["id"])); }