public IActionResult Register([FromBody] NewWriterDto newWriter) { var(saved, writerId, verificationCode) = service.Register(newWriter); if (saved) { var content = new StringBuilder("<html><body>"); content.Append("<h1>Hoşgeldiniz. Üyeliğiniz onaylandı.</h1>"); content.Append($"<p>Üyeliğinizin aktifleştirilmesi için <a href=\"{hostUrl}/writer/varification-page?code={verificationCode}&writerId={writerId}\">buraya</a> tıklayınız</p>"); content.Append("</body></html>"); mailService.SendVerificationMail(writerId, content.ToString()); return(Ok(true)); } return(BadRequest(false)); }