Пример #1
0
        public IHttpActionResult ReturnAmountOfPages(string userName = "")
        {
            if (userName.Length > 30)
            {
                return(BadRequest());
            }

            var resultNumber = Service.AmountOfPages(userName);

            return(Ok(resultNumber));
        }