protected object GetSenderEmailAccount(Int64 idSenderEmailAccount) { SenderEmailAccountBusinessService businessService = new SenderEmailAccountBusinessService(); OperationResult result = businessService.Get(idSenderEmailAccount); return(result.Data); }
protected virtual SenderEmailAccountForm GetSenderEmailAccountByTag(string tag) { ISenderEmailAccountBusinessService senderEmailAccountService = new SenderEmailAccountBusinessService(); OperationResult result = senderEmailAccountService.FindAllByTag(tag); List <object> senderEmailAccountList = (List <object>)result.Data; if (senderEmailAccountList.Count > 0) { object obj = senderEmailAccountList[0]; SenderEmailAccountForm senderEmailAccountForm = new SenderEmailAccountForm(); SenderEmailAccountFormDataConverter converter = new SenderEmailAccountFormDataConverter(); converter.PopulateForm(obj, senderEmailAccountForm); return(senderEmailAccountForm); } return(null); }