Esempio n. 1
0
        public ResponseModel GetById(int id)
        {
            var cat    = _catRepo.GetById(id);
            var catRes = CatMapper.ToCatResponse(cat);

            return(catRes);
        }
Esempio n. 2
0
        public List <ResponseModel> GetAll()
        {
            var cats         = _catRepo.GetAll().ToList();
            var catResponses = CatMapper.ToCatResponse(cats);

            return(catResponses);
        }