Exemplo n.º 1
0
 public ActionResult DeleteAirport(int id)
 {
     if (_AdminBll.deleteAirport(id))
     {
         return(RedirectToAction("ListAirport"));
     }
     return(RedirectToAction("Error"));
 }
Exemplo n.º 2
0
        public string deleteAirport(int id)
        {
            var jsonSerializer = new JavaScriptSerializer();

            return(jsonSerializer.Serialize(_adminBLL.deleteAirport(id)));
        }