public async Task <ActionResult> Create([FromBody] CreateUserRequest command) { var user = new ApplicationUser { UserName = command.Username, Email = command.Email, FirstName = command.FirstName, LastName = command.LastName, PhoneNumber = command.PhoneNumber, IdentificationCard = command.IdentificationCard, EstadoRegistro = command.EstadoRegistro }; await base.Command <CreateUserRequest, ICollection <UserDto> >(command); var emailSend = await EmailSender.SendEmailAsync(user.Email, user.FirstName, "Bienvenido a VentasApp", await UtilService.getHtmlBodyAccount(command.Username, command.Password)); if (emailSend > 0) { return(Ok("Se ha enviado un correo de confirmacion")); } return(BadRequest()); }