Beispiel #1
0
        public IActionResult Create(Producto product)
        {
            _deportesDbContext.Productos.Add(product);
            int count = _deportesDbContext.SaveChanges();

            return(View(product));
        }
        public IActionResult Create(Categoria category)
        {
            _deportesDbContext.Categorias.Add(category);
            int count = _deportesDbContext.SaveChanges();

            return(View(category));
        }