public async Task CreateForRecipient(AddEmailToRecipientViewModel model) { await _emailRepo.Create(new Email(model.RecipientId, model.TemplateId)); }
public async Task Create([FromBody] AddEmailToRecipientViewModel model) { await _service.CreateForRecipient(model); }