Ejemplo n.º 1
0
        public IActionResult PostQuestion(string bookName, string authorName, string question)
        {
            try
            {
                _errorHandler.LogInformation("Calling PostQuestion Method");
                _formsService.AddFormQuery(new Form {
                    AuthorName = authorName, BookName = bookName, Question = question
                });
                return(Index());
            }

            catch (Exception ex)
            {
                _errorHandler.HandleErrorException(ex.Message);
                return(View("Views/Error"));
            }
        }