public ActionResult ShowDetailsParking(int Id) { Parking parking = repository.GetParkingById(Id); return(View(parking)); }
public ActionResult DeleteParking(int id, int resortId, int hotelId) { Parking parking = repository.GetParkingById(id); repository.RemoveParking(id); if (hotelId != 0) { return(RedirectToAction("EditHotel", "Owner", new { id = hotelId })); } else { return(RedirectToAction("EditResort", "Owner", new { id = resortId })); } }