示例#1
0
 /* 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"));
 }
示例#2
0
 /* Find Genre By ID */
 public JsonResult GetdGenre(int ID)
 {
     return(Json(GenreAction.Find_By_ID(ID), JsonRequestBehavior.AllowGet));
 }
示例#3
0
 /* 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"]));
 }