// GET /api/slusa public IEnumerable <Slusa> Get() { SlusaDataProvider provider = new SlusaDataProvider(); IEnumerable <Slusa> s = provider.GetSlusa(); return(s); }
// GET api/slusa/5 public IEnumerable <Slusa> Get(int id) { SlusaDataProvider provider = new SlusaDataProvider(); IEnumerable <Slusa> s = provider.GetSlusa(id); if (s == null) { return(null); } //return Mapper.Map<Slusa, SlusaDTO>(s); return(s); }