示例#1
0
        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();
        }
示例#2
0
 public Location GetLocation(Location data)
 {
     return Factory.DaoLocation().Select(data).First();
 }