public ActionResult EditAirport(int id, AdminAirport inAir) { if (ModelState.IsValid) { if (_AdminBll.editAirport(id, inAir)) { return(RedirectToAction("ListAirport")); } } return(RedirectToAction("Error")); }
public string editAirport(int id, string name) { var jsonSerializer = new JavaScriptSerializer(); return(jsonSerializer.Serialize(_adminBLL.editAirport(id, name))); }