public static Business.paymentrecurrence getRecurrence(string recurrence) { Business.paymentrecurrence rec = new Business.paymentrecurrence(); switch (recurrence.ToLower().ToString()) { case "daily": case "day": rec = Business.paymentrecurrence.daily; break; case "weekly": case "week": rec = Business.paymentrecurrence.week; break; case "biweekly": case "biweek": rec = Business.paymentrecurrence.biweek; break; case "halfmonthly": case "halfmonth": rec = Business.paymentrecurrence.halfmonth; break; case "monthly": case "month": rec = Business.paymentrecurrence.month; break; case "quarterly": case "quarter": rec = Business.paymentrecurrence.qyear; break; case "halfyearly": case "halfyear": rec = Business.paymentrecurrence.halfyear; break; case "yearly": case "year": rec = Business.paymentrecurrence.year; break; default: rec = paymentrecurrence.none; break; } return(rec); }
public static Business.paymentrecurrence getRecurrence(string recurrence) { Business.paymentrecurrence rec = new Business.paymentrecurrence(); switch (recurrence.ToLower().ToString()) { case "daily": case "day": rec = Business.paymentrecurrence.daily; break; case "weekly": case "week": rec = Business.paymentrecurrence.week; break; case "biweekly": case "biweek": rec = Business.paymentrecurrence.biweek; break; case "halfmonthly": case "halfmonth": rec = Business.paymentrecurrence.halfmonth; break; case "monthly": case "month": rec = Business.paymentrecurrence.month; break; case "quarterly": case "quarter": rec = Business.paymentrecurrence.qyear; break; case "halfyearly": case "halfyear": rec = Business.paymentrecurrence.halfyear; break; case "yearly": case "year": rec = Business.paymentrecurrence.year; break; default: rec = paymentrecurrence.none; break; } return rec; }