Example #1
0
 public IActionResult OnPostDelete(int id)
 {
     try{
         service.Delete(id);
         return(Redirect("/Admin/Theaters"));
     } catch (Exception exception) {
         InitData();
         ErrorMessage = exception.Message;
         return(Page());
     }
 }