public ActionResult DeleteFlight(int id) { if (_AdminBll.deleteFlight(id)) { return(RedirectToAction("ListFlight")); } return(RedirectToAction("Error")); }
public string deleteFlight(int id) { var jsonSerializer = new JavaScriptSerializer(); return(jsonSerializer.Serialize(_adminBLL.deleteFlight(id))); }