public Location GetDefaultLocation() { Company company = new Company(); company.IsDefault = true; company = Factory.DaoCompany().Select(company).First(); Location data = new Location(); data.IsDefault = true; data.Company = company; return Factory.DaoLocation().Select(data).First(); }
public Location GetLocation(Location data) { return Factory.DaoLocation().Select(data).First(); }