public IActionResult Get([FromQuery] GetAuthorHttpRequest request)
        {
            var serviceResponse = _authorService.GetAuthors(request.Offset, request.Limit);

            var httpResponse = new GetAuthorsHttpResponse
            {
                Total = serviceResponse.Total, Authors = serviceResponse.Authors
            };

            return(StatusCode((int)HttpStatusCode.OK, httpResponse));
        }
        public IActionResult Get([FromRoute] string id)
        {
            var serviceResponse = _authorService.GetAuthor(id);

            var httpResponse = new GetAuthorsHttpResponse
            {
                Authors = new List <AuthorModel> {
                    serviceResponse.Author
                }
            };

            return(StatusCode((int)HttpStatusCode.OK, httpResponse));
        }
        public IActionResult Get([FromQuery] GetAuthorSearchHttpRequest request)
        {
            var serviceResponse = _authorService.GetAuthor(request.SearchText, SearchType.TEXT);


            var httpResponse = new GetAuthorsHttpResponse
            {
                Authors = new List <AuthorModel> {
                    serviceResponse.Author
                }
            };

            return(StatusCode((int)HttpStatusCode.OK, httpResponse));
        }