public HttpResponseMessage GetCommunicationLogInDetails(ServiceProviderViewModel request) { ServiceProviderResponse response = serviceProviderService.GetServiceProvider(new ServiceProviderRequest() { ServiceProviderViewModel = request }); return(Request.BuildResponse(response)); }
public string GetImageDomain(int accountId) { string imageDomain = string.Empty; Logger.Current.Informational("Request received for getting image-domain"); ServiceProviderResponse response = communicationService.GetServiceProvider(new ServiceProviderRequest() { ServiceProviderViewModel = new ServiceProviderViewModel() { CommunicationTypeID = CommunicationType.Mail, MailType = MailType.BulkEmail }, AccountId = accountId }); if (response.ServiceProviderViewModel != null) { Guid loginToken = response.ServiceProviderViewModel.LoginToken; MailService mailService = new MailService(); var defaultProvider = mailService.GetMailRegistrationDetails(loginToken); imageDomain = defaultProvider.ImageDomain; } return(imageDomain); }