public ActionResult Delete(string id = "") { Logger.Debug("Inside Place Controller- Delete"); try { if (Session["OrganizationGUID"] != null) { PlaceModel place = new PlaceModel(); place.PlaceGUID = id; _IPlaceRepository.DeletePlace(new Guid(place.PlaceGUID)); //_IPlaceRepository.Save(); _IPeopleRepository.DeletePeopleByPlaceGUID(new Guid(place.PlaceGUID)); _IMarketRepository.DeleteMarketByOwnerGUID(new Guid(place.PlaceGUID)); return(RedirectToAction("Index")); } else { return(RedirectToAction("SessionTimeOut", "User")); } } catch (Exception ex) { Logger.Error(ex.Message); return(RedirectToAction("Index")); } }