public IList <T> Get(TSearch request = default) { var list = _context.Set <TDb>().ToList(); //var list = _context.Korisnici.ToList(); return(_mapper.Map <IList <T> >(list)); }
public virtual IEnumerable <T> Get(TSearch search = null) { var entity = Context.Set <TDb>(); var list = entity.ToList(); return(_mapper.Map <List <T> >(list)); }
public override List <Proizvod> Get(ProizvodSearchRequest request) { var list = _database.Set <Proizvodi>().AsQueryable(); if (request?.VrstaId.HasValue == true) { list = list.Where(a => a.VrstaId == request.VrstaId); } list = list.OrderBy(a => a.Naziv); var listreturn = list.ToList(); return(_mapper.Map <List <Model.Proizvod> >(listreturn)); }
public virtual IList <T> GetAll(TSearch search = default) { var result = _context.Set <TDb>().ToList(); return(_mapper.Map <IList <T> >(result)); }
public virtual List <TModel> Get(TSearch search) { var list = _context.Set <TDatabase>().ToList(); return(_mapper.Map <List <TModel> >(list)); }
public virtual List <TModel> Get(TSearchRequest request) { var list = _database.Set <TDatabase>().ToList(); return(_mapper.Map <List <TModel> >(list)); }
public virtual async Task <List <TModel> > Get(TSearch search) { return(_mapper.Map <List <TModel> >(await _context.Set <TDatabase>().ToListAsync())); }