public decimal ConvertRupeeToDollar(IPlanMessage plan) { if (plan.CurrencyName != "USD") { return(ConvertRupeeToDollar(plan.Price)); } else { return(plan.Price); } }
private string GetItemDiscription(IOrderItemMessage orderItem) { string description = ""; IPlanMessage planMsg = null; switch (orderItem.Status) { case Constant.OrderItemStatusProcessed: planMsg = Plan.GetPlanBySubPlanId(orderItem.SubPlanID); description = Constant.GetItemDescription("", planMsg.ProductName, planMsg.DisplayName) + " for " + planMsg.Year.ToString() + (planMsg.Year > 1 ? " years" : " year"); break; default: planMsg = Plan.GetPlanBySubPlanId(orderItem.SubPlanID); description = Constant.GetItemDescription("", planMsg.ProductName, planMsg.DisplayName) + " for " + planMsg.Year.ToString() + (planMsg.Year > 1 ? " years" : " year"); break; } return(description); }