Beispiel #1
0
        public async Task <IActionResult> GetClubByName(string name)
        {
            var club = await _storage.GetAllByPartition <Club>(name);

            if (!club.Any())
            {
                return(NotFound());
            }

            return(new ObjectResult(_mapper.Map <Club, ClubApi>(club.Single())));
        }