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