Esempio n. 1
0
        public ActionResult Delete(SportsSide.DAL.DISTRICT district)
        {
            var result = webApi.DeleteDistrict(district);

            if (result == false)
            {
                var oldDistrict = webApi.GetDistrict(district.DISTRICT_ID);
                TempData["Hata"] = "Bir hata oluştu.";
                return(View(oldDistrict));
            }
            return(RedirectToAction("Index", "Districts"));
        }