Пример #1
0
        public ActionResult DeleteRecord(int id)
        {
            var carrier = _carrierService.GetCarrier(id);

            if (carrier != null)
            {
                _carrierService.DeleteCarrier(id);
            }

            return(RedirectToAction("Index"));
        }
Пример #2
0
 // GET: Carrier/DeleteCareer/1
 public ActionResult DeleteCarrier(int id)
 {
     try
     {
         var result = _carrierService.DeleteCarrier(id);
         if (result)
         {
             ViewBag.AlertMsg = "Partner details deleted successfully";
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Пример #3
0
 public ActionResult CarrierDelete(long id)
 {
     carrierService.DeleteCarrier(id);
     return(RedirectToAction("Carrier"));
 }