Example #1
0
 public IEnumerable <T> GetAll <T>() where T : class
 {
     return(repositories.GetRepository <T>().GetAll());
 }
Example #2
0
 public async Task <IEnumerable <T> > GetAll <T>() where T : class
 {
     //if (typeof(T) == typeof(Flight))
     //    await LetWait(1000);
     return(await Task.Run(() => repositories.GetRepository <T>().GetAll()));
 }
Example #3
0
 public async Task <IEnumerable <T> > GetAll <T>() where T : class
 {
     return(await Task.Run(() => repositories.GetRepository <T>().GetAll()));
 }
Example #4
0
 public void Add(TEntity entity)
 {
     _uow.GetRepository <TEntity>().Add(entity);
     _uow.SaveChanges();
 }