private static bool Validate(Company Company) { try { EntryValidation v = new EntryValidation(); v.AddIfEmpty(Company.Name, "Name"); if (v.HasErrors()) { v.PrintErrors(); return(false); } } catch { throw; } return(true); }
private static bool Validate(Company Company) { try { EntryValidation v = new EntryValidation(); v.AddIfEmpty(Company.Name, "Name"); if (v.HasErrors()) { v.PrintErrors(); return(false); } } catch { throw; } return(true); }