Exemplo n.º 1
0
 public decimal ConvertRupeeToDollar(IPlanMessage plan)
 {
     if (plan.CurrencyName != "USD")
     {
         return(ConvertRupeeToDollar(plan.Price));
     }
     else
     {
         return(plan.Price);
     }
 }
Exemplo n.º 2
0
        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);
        }