// GET: Property public ActionResult Rent(int?id) { if (id.HasValue) { return(View(_rent.GetRentProperty(id.Value))); } return(View(new PropertyRentModel())); }