public static string AddCategory(int parentId, string catName) { var res = AppUtils.AddCategory(parentId, catName, 1); if (res == false) { return("An error occured"); } else { return("Category added"); } }