public async Task <IEnumerable <EmailTemplate> > GetEmailTemplateByUserAsync() { var loggedInUserID = _userService.GetCurrentUserId(); CoreServiceDevReference.CoreServiceClient coreServiceClient = new CoreServiceDevReference.CoreServiceClient(); var emailTemplate = await coreServiceClient.GetEmailTemplatesByUserAsync(int.Parse(loggedInUserID)); return(emailTemplate); }
public async Task <bool> SendEmailMessage(Message message, string emailMessageType, int clientAssessmentKey) { var loggedInUserID = _userService.GetCurrentUserId(); CoreServiceDevReference.CoreServiceClient coreServiceClient = new CoreServiceDevReference.CoreServiceClient(); var emailTemplate = await coreServiceClient.GetEmailTemplatesByUserAsync(int.Parse(loggedInUserID)); return(true); }