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

            return(jsonSerializer.Serialize(_adminBLL.editAirport(id, name)));
        }