コード例 #1
0
        public ActionResult Enable(int id)
        {
            var sId = AgroExpressDBAccess.GetSubAreaById(id);

            if (sId.IsDeleted == true)
            {
                AgroExpressDBAccess.EnableSubArea(sId.PKSubAreaId);
                return(RedirectToAction("DisabledList"));
            }
            else
            {
                return(RedirectToAction("DisabledList"));
            }
        }