public void Insert(string CategoryName,string Description,byte[] Picture) { Category item = new Category(); item.CategoryName = CategoryName; item.Description = Description; item.Picture = Picture; item.Save(UserName); }
public static void Setup(int testItems) { SetTestRepo(); for(int i=0;i<testItems;i++){ Category item=new Category(); _testRepo._items.Add(item); } }
public void Update(int CategoryID,string CategoryName,string Description,byte[] Picture) { Category item = new Category(); item.MarkOld(); item.IsLoaded = true; item.CategoryID = CategoryID; item.CategoryName = CategoryName; item.Description = Description; item.Picture = Picture; item.Save(UserName); }
public static void Setup(Category item) { SetTestRepo(); _testRepo._items.Add(item); }