Example #1
0
        public async Task <FavouriteClubDTO> CreateFavouriteClub(FavouriteClubDTO favourite)
        {
            var mappedFavourite = _mapper.Map <FavouriteClub>(favourite);
            var fav             = await _favouriteRepository.CreateFavouriteClub(mappedFavourite);

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