internal string Edit(Category category) { string message = ""; if (categoryGateway.DoesCategoryNameExists(category.Name)) { message = "The Category Name Already Exists"; } else { int rowAffected = categoryGateway.Edit(category); if (rowAffected > 0) { message = "Category Updated Successfully"; } else { message = "Catgeory Could Not Be Updated"; } } return(message); }