Esempio n. 1
0
        public ActionResult Delete(int id)
        {
            int usercount = userInfoRepository.CountLocation(id);

            if (usercount > 0)
            {
            }
            else
            {
                var status = locationRepository.Delete(id);
                Session["Status"]  = status ? "Success" : "Failed";
                Session["Message"] = status ? "Location Successfully Deleted" : "Location Deletion Failed";
            }
            return(RedirectToAction("Index"));
        }