Ejemplo n.º 1
0
        public async Task <FavouriteTrainerDTO> CreateFavouriteTrainer(FavouriteTrainerDTO favourite)
        {
            var mappedFavourite = _mapper.Map <FavouriteTrainer>(favourite);
            var fav             = await _favouriteRepository.CreateFavouriteTrainer(mappedFavourite);

            return(_mapper.Map <FavouriteTrainerDTO>(fav));
        }