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