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

            if (aId.IsDeleted == true)
            {
                AgroExpressDBAccess.EnableDeliveryBoy(aId.PKDeliveryBoyId);
                return(RedirectToAction("DisabledList"));
            }
            else
            {
                return(RedirectToAction("DisabledList"));
            }
        }