Ejemplo n.º 1
0
 public List <VStartingLists> getAllList(IParticipantStart istartList)
 {
     using (var db = new EntitiesTagTime())
     {
         var source = db.VStartingLists.AsNoTracking().ToList();
         if (source.Any())
         {
             var result = source.Distinct().Select(x => new VStartingLists
             {
                 list_id     = x.list_id,
                 list_nazwa  = x.list_nazwa,
                 dys_wartosc = x.dys_wartosc,
                 list_ilosc  = x.list_ilosc
             }).ToList();
             return(result);
         }
         else
         {
             List <VStartingLists> emptyResult = new List <VStartingLists>();
             emptyResult.Add(istartList.getEmptyList());
             return(emptyResult);
         }
     }
 }
Ejemplo n.º 2
0
 public ParticipantStart()
 {
     this.ipartipantStart   = new ParticipantStart();
     this.istoredprocedures = new StoredProceduresOfficeMarathon();
 }