Exemplo n.º 1
0
 public IList <Data.School.Model.School> GetSchools()
 {
     using (var uow = Read())
     {
         var da = new SchoolDataAccess(uow);
         return(da.GetAll());
     }
 }
Exemplo n.º 2
0
 public Data.Master.Model.School GetById(Guid districtRef, int localId)
 {
     using (var uow = Read())
     {
         var da = new SchoolDataAccess(uow);
         return(da.GetAll(
                    new AndQueryCondition
         {
             new SimpleQueryCondition(Data.Master.Model.School.DISTRICT_REF_FIELD, districtRef, ConditionRelation.Equal),
             new SimpleQueryCondition(Data.Master.Model.School.LOCAL_ID_FIELD, localId, ConditionRelation.Equal)
         }
                    )
                .First());
     }
 }