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(Task Task) { try { EntryValidation v = new EntryValidation(); //v.AddIfEmpty(Task.BillableTime, "Billable time"); if (v.HasErrors()) { v.PrintErrors(); return(false); } } catch { throw; } return(true); }