Exemplo n.º 1
0
        public void AddHouse(HouseModel model, string lat, string lon)
        {
            CategoryModel category = new CategoryModel
            {
                CategoryName = model.Category.CategoryName,
            };

            // dbb.Categories.Add(category);
            model.Category = category;

            ProductCoordinateModel coordinate = new ProductCoordinateModel
            {
                Lat = lat,
                Lon = lon
            };

            // dbb.ProductCoordinates.Add(coordinate);
            model.Coordinate = coordinate;

            dbb.Houses.Add(model);
            dbb.SaveChanges();
        }
Exemplo n.º 2
0
 public void EditHouse(HouseModel model, string lat, string lon)
 {
     throw new NotImplementedException();
 }