예제 #1
0
 public ActionResult Delete(int id, Rezervimet rezervimet)
 {
     try
     {
         // TODO: Add delete logic here
         ProfesoratDAL.Delete(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
예제 #2
0
 public ActionResult Delete(int id, Profesori profesori)
 {
     try
     {
         //if (ModelState.IsValid)
         //{
         ProfesoratDAL.Delete(id);
         return(RedirectToAction("Index", profesori));
         // }
     }
     catch (Exception ex)
     {
         return(View());
     }
 }