public PropertyDetailedModel(PropertyBasicDetailsDto dto) { Property = new PropertyModel(dto); Address = new AddressModel(dto); }
public PropertyDetailedModel(PropertyDetailedDto dto) { Property = new PropertyModel(dto); Address = new AddressModel(dto); Tenants = dto.Tenants; }
public ActionResult View(Guid id) { var dto = _tenantService.GetPropertyDetails(id); var model = new PropertyModel() { PropertyId = dto.PropertyId, Address1 = dto.Address1, Area = dto.Area, City = dto.City, PostCode = dto.PostCode, Beds = dto.Beds, Deposit = dto.Deposit, Rent = dto.Rent, PropertyImageIds = dto.PropertyImageIds, StartDate = dto.StartDate }; return View("View", model); }