public EditViewModel(house.Data.House house) { House = new HomeViewModel() { Id = house.Id, Zip = house.Zip, Address = house.Address }; }
public HomeViewModel(house.Data.House house) { if (house == null) { throw new ArgumentNullException(nameof(house)); } Id = house.Id; Zip = house.Zip; Address = house.Address; }
public HouseResponseModel(house.Data.House house) { Id = house.Id; Zip = house.Zip; }
public ShowViewModel(house.Data.House house) => House = new HomeViewModel(house);
public HomeViewModel(house.Data.House house) { Id = house.Id; Zip = house.Zip; Address = house.Address; }