Example #1
0
 public string CategorySave(Category category)
 {
     if (categoryGateway.IsCategoryExists(category.Name))
     {
         return("Category Already Exists ");
     }
     else
     {
         int rowAffect = categoryGateway.CategorySave(category);
         if (rowAffect > 0)
         {
             return("Saved Sucessfull");
         }
         else
         {
             return("Save Faild");
         }
     }
 }