Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }