Exemplo n.º 1
0
        public async Task <IActionResult> Create([Bind("Id,Produkt,Antal,Enhet,Medelande")] Vegetables vegetables)
        {
            if (ModelState.IsValid)
            {
                _context.Add(vegetables);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(vegetables));
        }