/**
  * Edit Item (U)
  */
 public void EditItem(Item item)
 {
     _context.Entry(item).State = EntityState.Modified;
     _context.SaveChanges();
 }
Example #2
0
 /**
  * Editing currently existing categories (U)
  */
 public void EditCategory(Category category)
 {
     _context.Entry(category).State = EntityState.Modified;
     _context.SaveChanges();
 }