Example #1
0
 object[] Take(Category category)
 {
     return new object[]  
     {
         "@CategoryId", category.CategoryId,
         "@CategoryName", category.CategoryName,
         "@Description", category.Description
     };
 }
Example #2
0
 public void TestInitialize()
 {
     target = new Category();
 }
Example #3
0
 protected void FindCategory()
 {
     //if the selected index of ddlCategory to zero
     if (ddlCategory.SelectedIndex >= 0)
     {
             //make a new category called cat
             Category cat = new Category();
             //filter the category by fandomID of stry
             cat = cat.GetByFandomId(new Guid(stry.FandomID.ToString()));
             //set ddlCategory's SelectedIndex to the Id of cat
             ddlCategory.SelectedIndex = ddlCategory.Items.IndexOf(ddlCategory.Items.FindByValue(cat.Id.ToString()));
     }
 }