Beispiel #1
0
        public void AddMode(ModeModel 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.Modes.Add(model);
            dbb.SaveChanges();
        }
Beispiel #2
0
 public void EditMode(ModeModel model, string lat, string lon)
 {
     throw new NotImplementedException();
 }