public string CreateTransaction(string accountid, string userid, string subcategoryid, string categoryid, string description, string amount, int duemonth, int duedate, int paiddate, int paidmonth, int paidyear, paymentrecurrence recurrence) { string transactionid = ""; dataLayer.createTransactionOverAccount(accountid, userid, subcategoryid, categoryid, description, amount, duemonth, duedate, paiddate, paidmonth, paidyear, paymentrecurrence.none); return(transactionid); }
public void CreateAccount(string accountname, string userid, string accounttype, string catid, string catname, string desc, string providerid, string providername, string amount, int duemonth, string recurrence, int duedate) { string newsubcatid = Guid.NewGuid().ToString().Replace("-", ""); string acid = Businessdata.createUserAccount(accountname, userid, accounttype, newsubcatid, catid, catname, desc, providerid, providername, amount, duemonth, recurrence, duedate, false, false); Businessdata.createTransactionOverAccount(acid, userid, newsubcatid, catid, desc, amount, duemonth, duedate, 0, 0, 0, DataLayer.getRecurrence(recurrence)); }