Пример #1
0
        // DELETE: api/Region/1
        public Region Delete(int id)
        {
            var regionDelete = logic.GetOne(id);

            logic.Delete(regionDelete);

            return(regionDelete);
        }
        public ActionResult Delete(Region region)
        {
            var regiondelete = logic.GetOne(region.RegionID);

            logic.Delete(regiondelete);

            return(RedirectToAction("Index"));
        }