public Complex GetComplex(Complex selectComplex) { if (ComplexAccess != null) { return(ComplexAccess.SelectComplex(selectComplex)); } return(new Complex()); }
public ComplexWithHouses GetComplexWithHouses(Complex selectComplex) { if (ComplexAccess != null) { Complex temp = ComplexAccess.SelectComplex(selectComplex); var downCastedComplex = new ComplexWithHouses { AddedValue = temp.AddedValue, BuildingCost = temp.BuildingCost, City = temp.City, IdComplex = temp.IdComplex, IsDeleted = temp.IsDeleted, StatusConstructionHousingComplex = temp.StatusConstructionHousingComplex, NameHousingComplex = temp.NameHousingComplex }; return(downCastedComplex); } return(new ComplexWithHouses()); }