public static string update(string Name, string Description) { string error = ""; if (Name == "") { error = "Product type name must be filled"; } else if (Description == "") { error = "Description must be filled"; } else if (Name.Length < 5) { error = "Product type name must be consists of 5 characters or more"; } else if (!ProductTypeHandler.checkProductTypeIsUnique(Name)) { error = "Product type name must be unique"; } return(error); }