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(); }
public void EditHouse(HouseModel model, string lat, string lon) { throw new NotImplementedException(); }