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