public async Task <ActionResult> UpdateTemplate(string name, [FromBody] TemplateViewModel command)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(ModelStateErrorResponseError());
            }

            command.SetOldName(name);
            await _emailAppService.UpdateTemplate(command);

            return(ResponsePutPatch());
        }