예제 #1
0
        public IActionResult GetTemplate(string id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var template = _service.GetTemplate(id);

            if (template == null)
            {
                return(NotFound());
            }
            return(Ok(template));
        }