public IActionResult GetTemplate(string id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var template = _service.GetTemplate(id); if (template == null) { return(NotFound()); } return(Ok(template)); }
public IActionResult GetTemplate(string id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var template = _service.GetTemplate(id); if (template == null) { return(NotFound()); } return(Ok(template)); }