Пример #1
0
        public ActionResult GetItem(string itemName)
        {
            if (ValidationHelper.IsTaskNameEmpty(itemName))
            {
                return(BadRequest(itemName));
            }

            var response = todoListService.GetItem(itemName);

            if (response is null)
            {
                return(NotFound(itemName));
            }

            return(Ok(response));
        }