public async Task <IActionResult> Create([Bind("Id,Name,Site,CostumerSatisfaction")] Department department)
        {
            if (ModelState.IsValid)
            {
                _context.Add(department);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(department));
        }
示例#2
0
 public void Insert(Seller seller)
 {
     _context.Add(seller);
     _context.SaveChanges();
 }