Esempio n. 1
0
        public List <Wellness.Model.Osoba> Get(OsobaSearchReqeust request)
        {
            var query = _context.Osoba.AsQueryable();

            if (request != null)
            {
                if (request.Username != null)
                {
                    query = query.Where(o => o.KorisnickoIme == request.Username);
                }
            }

            var list = query.ToList();

            return(_mapper.Map <List <Wellness.Model.Osoba> >(list));
        }
 public ActionResult <List <Model.Osoba> > Get([FromQuery] OsobaSearchReqeust request)
 {
     return(_service.Get(request));
 }