Ejemplo n.º 1
0
        public void Edit(HouseViewModel houseV)
        {
            House house = new House()
            {
                HouseId      = houseV.HouseId,
                OwnerId      = houseV.OwnerId,
                StreetName   = houseV.StreetName,
                StreetNumber = houseV.StreetNumber,
                Description  = houseV.Description,
                DateMoveIn   = houseV.DateMoveIn,
                IsPlot       = houseV.IsPlot,
                CategoryId   = houseV.CategoryId,
                ERF          = houseV.ERF
            };

            _houseRepository.Edit(house);

            _houseRepository.Save();
        }