public void Remove(int _id) { ItemCatageory itemCatageory = context.ItemCatageory.Find(_id); context.ItemCatageory.Remove(itemCatageory); context.SaveChanges(); }
public void Edit(ItemCatageory _itemCatageory) { context.Entry(_itemCatageory).State = System.Data.Entity.EntityState.Modified; context.SaveChanges(); }
public void Add(ItemCatageory _itemCatageory) { context.ItemCatageory.Add(_itemCatageory); context.SaveChanges(); }