public string SaveCategoryManager(Category aCategory) { checkCategoryNameExist = aCategoryGateway.IsExistCategoryName(aCategory); if (checkCategoryNameExist == true) { return("Category Name is Already Exist"); } int rowAffect = aCategoryGateway.SaveCategory(aCategory); if (rowAffect > 0) { return("Successfully Insert"); } return("Failed To Save"); }