public string getTransferInfoHtml(int eftId, int langId, DbWithControllerWithMaster helperController, TransferHtmlType transferType) { var eftItem = getEftList(langId).Where(a => a.bankEftId == eftId).FirstOrDefault(); if (eftItem != null) { switch (transferType) { case TransferHtmlType.mail: case TransferHtmlType.orderDetail: return helperController.RenderRazorViewToString("TransferMailHtml", eftItem); } } return ""; }
private string getBasketListWithPlainHtml(orderSummary helperPage, DbWithControllerWithMaster helperController, BasketHtmlType htmlType) { switch (htmlType) { case BasketHtmlType.agreement: return helperController.RenderRazorViewToString("PlainBasket", helperPage); case BasketHtmlType.mail: return helperController.RenderRazorViewToString("PlainBasketMail", helperPage); default: return ""; } }
public string getAddressHtml(tbl_address addressItem, AddressHtmlType addressType, DbWithControllerWithMaster helperController) { if (addressItem != null) { switch (addressType) { case AddressHtmlType.agreement: var item = getAddressAccountTemplate(addressItem); return item.content; case AddressHtmlType.mail: case AddressHtmlType.orderDetail: return helperController.RenderRazorViewToString("AddressMailHtml", addressItem); case AddressHtmlType.adminOrderDetail: return ""; } } return ""; }