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

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