Example #1
0
        public void Remove(int _id)
        {
            ItemCatageory itemCatageory = context.ItemCatageory.Find(_id);

            context.ItemCatageory.Remove(itemCatageory);
            context.SaveChanges();
        }
Example #2
0
 public void Edit(ItemCatageory _itemCatageory)
 {
     context.Entry(_itemCatageory).State = System.Data.Entity.EntityState.Modified;
     context.SaveChanges();
 }
Example #3
0
 public void Add(ItemCatageory _itemCatageory)
 {
     context.ItemCatageory.Add(_itemCatageory);
     context.SaveChanges();
 }