Beispiel #1
0
        public static int insertPaymentReciept(PaymentRecieptModel s)
        {
            try
            {
                SqlHandler sql = new SqlHandler();
                List <KeyValuePair <string, object> > parameter = new List <KeyValuePair <string, object> >();

                parameter.Add(new KeyValuePair <string, object>("@PaymentRecieptId", s.paymentReceiptId));

                parameter.Add(new KeyValuePair <string, object>("@Amount", s.Amount));
                parameter.Add(new KeyValuePair <string, object>("@CrAccountId", s.CrAccountId));
                parameter.Add(new KeyValuePair <string, object>("@FinancialYearId", s.financialYearID));
                parameter.Add(new KeyValuePair <string, object>("@CompanyId", s.CompanyId));
                parameter.Add(new KeyValuePair <string, object>("@InsertBy", s.InsertBy));
                parameter.Add(new KeyValuePair <string, object>("@insertDate", s.InseertDate));
                parameter.Add(new KeyValuePair <string, object>("@PaymentType", s.PaymentType));
                parameter.Add(new KeyValuePair <string, object>("@narration", s.Narration));
                parameter.Add(new KeyValuePair <string, object>("@DrAccount", s.DrAccount));
                parameter.Add(new KeyValuePair <string, object>("@CrGold", s.Gold));



                int i = sql.ExecuteNonQueryI("Usp_PaymentReciept", parameter);
                return(i);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
        // POST api/paymentreciept
        public int Post(PaymentRecieptModel m)
        {
            int i = PaymentRecieptProvider.insertPaymentReciept(m);

            return(i);
        }