public string SaveCategory(Category categoryObj) { Category acategory = categoryGateway.IsExisted(categoryObj); if (acategory == null) { int row = categoryGateway.SaveCategory(categoryObj); if (row > 0) { return("Successfully Inserted"); } else { return("Insert Failed"); } } else { return("Category Already Existed"); } }