Ejemplo n.º 1
0
 public string AddCategory(CategoryModel aCategory)
 {
     if (addCategory.IsExistsCategory(aCategory.CategoryName))
     {
         return("Category Name Already Exist,Please Input Another Category");
     }
     else
     {
         rowAffect = addCategory.AddCategory(aCategory);
         if (rowAffect == 1)
         {
             return("Category Added Succesfuly");
         }
         else
         {
             return("Category Added Failed");
         }
     }
 }