예제 #1
0
        // GET /api/slusa
        public IEnumerable <Slusa> Get()
        {
            SlusaDataProvider provider = new SlusaDataProvider();

            IEnumerable <Slusa> s = provider.GetSlusa();

            return(s);
        }
예제 #2
0
        // 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);
        }