public ResponseModel GetById(int id) { var cat = _catRepo.GetById(id); var catRes = CatMapper.ToCatResponse(cat); return(catRes); }
public List <ResponseModel> GetAll() { var cats = _catRepo.GetAll().ToList(); var catResponses = CatMapper.ToCatResponse(cats); return(catResponses); }