Exemplo n.º 1
0
 public PropertyDetailedModel(PropertyBasicDetailsDto dto)
 {
     Property = new PropertyModel(dto);
     Address = new AddressModel(dto);
 }
Exemplo n.º 2
0
 public PropertyDetailedModel(PropertyDetailedDto dto)
 {
     Property = new PropertyModel(dto);
     Address = new AddressModel(dto);
     Tenants = dto.Tenants;
 }
Exemplo n.º 3
0
        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);
        }