public IActionResult UpdateTemplate(TemplatesModel templatesModel) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (_service.UpdateTemplate(templatesModel)) { return(Ok()); } return(BadRequest()); }