Example #1
0
        public void Delete_Payment(int PaymentId)
        {
            tblpayment Payment = (from p in svmContext.tblpayment
                                  where p.PaymentId == PaymentId &&
                                  p.IsDeleted == false
                                  select p).FirstOrDefault();

            svmContext.SaveChanges();
        }
Example #2
0
        public void SavePayment(int studentId, decimal amount, int modeOfPayment, int?chequeNo, bool isDownpayment,
                                bool isPromissory)
        {
            tblpayment tblPayment = new tblpayment();

            tblPayment.StudentId     = studentId;
            tblPayment.Amount        = amount;
            tblPayment.ModeOfPayment = modeOfPayment;
            tblPayment.ChequeNumber  = chequeNo;
            tblPayment.isDownpayment = isDownpayment;
            // tblPayment.ispro

            svmContext.tblpayment.Add(tblPayment);
            svmContext.SaveChanges();
        }