public async Task SendInviteAsync(User sender, Organization organization, Invite invite) { MailMessage msg = _emailGenerator.GenerateMessage(new InviteModel { Sender = sender, Organization = organization, Invite = invite, BaseUrl = Settings.Current.BaseURL }, "Invite"); msg.To.Add(invite.EmailAddress); await QueueMessage(msg); }
public void SendInvite(User sender, Organization organization, Invite invite) {}
public Task SendInviteAsync(User sender, Organization organization, Invite invite) { return Task.Delay(0); }
public Task SendInviteAsync(User sender, Organization organization, Invite invite) { return Task.FromResult(0); }
public Task SendInviteAsync(User sender, Organization organization, Invite invite) { return Task.Run(() => SendInvite(sender, organization, invite)); }