Ejemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            var aId = AgroExpressDBAccess.GetDeliveryBoyByID(id);

            if (aId.IsDeleted == false)
            {
                AgroExpressDBAccess.DisableDeliveryBoy(aId.PKDeliveryBoyId);
                return(RedirectToAction("EnabledList"));
            }
            else
            {
                return(RedirectToAction("EnabledList"));
            }
        }