Ejemplo n.º 1
0
        public async Task <IActionResult> AddOrUpdateEmailTemplate([FromBody] EmailTemplateAddOrUpdateRequest request)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ErrorResponseFactory.Create(ModelState)));
            }

            await _emailTemplateService.AddOrUpdateTemplateAsync(request.EmailTemplate, request.Username);

            return(Ok());
        }