public IEnumerable <T> GetAll <T>() where T : class { return(repositories.GetRepository <T>().GetAll()); }
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())); }
public async Task <IEnumerable <T> > GetAll <T>() where T : class { return(await Task.Run(() => repositories.GetRepository <T>().GetAll())); }
public void Add(TEntity entity) { _uow.GetRepository <TEntity>().Add(entity); _uow.SaveChanges(); }