public async Task <Suggestion> Create(SuggestionCreate input)
        {
            var model = new Suggestion()
            {
                Content = input.Content,
                Email   = input.Email
            };
            await _suggestionRepository.AddAsync(model);

            return(model);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Suggestion(SuggestionCreate input)
        {
            var result = await _suggestionAppService.Create(input);

            return(Ok(result));
        }