Ejemplo n.º 1
0
        public async Task StoreJoke(string jokeBody)
        {
            if (string.IsNullOrWhiteSpace(jokeBody))
            {
                return;
            }

            var jokeModel = new Joke
            {
                Body = jokeBody
            };

            await _jokeRepository.Insert(jokeModel);
        }