public ActionResult AddPaymentForUser(string userName, string PaymentCode, string PaymentFee, int PaymentDateDay, int PaymentDateMonth, int PaymentDateYear, string PaymentBank, int PaymentMethod)
        {
            String tmpPayment = PaymentFee;
            PaymentFee = "";
            foreach (var ch in tmpPayment)
                if (ch != ',')
                    PaymentFee += ch;

            try
            {
                if (m_model.aspnet_Users.Count(P => P.UserName.Equals(userName)) > 0)
                {
                    Guid userId = m_model.aspnet_Users.Single(P => P.UserName.Equals(userName)).UserId;
                    if (m_model.Payments.Count(P => P.ReceiptID == PaymentCode && P.MemberID.Equals(userId)) > 0)
                    {
                        return Error(61);
                    }
                    else
                    {
                        Payment payment = new Payment();
                        payment.MemberID = userId;
                        payment.PaymentMethod = PaymentMethod;
                        payment.ReceiptID = PaymentCode;
                        payment.Fee = PaymentFee;
                        payment.DestinationBank = PaymentBank;
                        payment.SourceBank = PaymentBank;
                        payment.DateofEntry = DateTime.Now;
                        payment.DateOfPayment = PaymentDateYear + "/" + PaymentDateMonth + "/" + PaymentDateDay;
                        m_model.Payments.InsertOnSubmit(payment);
                        m_model.SubmitChanges();
                        return Json(new { Result = payment.ID, Status = true, Message = 36 }, JsonRequestBehavior.AllowGet);
                    }
                }
                else
                {
                    return Error(38);
                }
            }
            catch (Exception ex)
            {
                return Error(ex.Message);
            }
        }
 partial void UpdatePayment(Payment instance);
 partial void DeletePayment(Payment instance);
 partial void InsertPayment(Payment instance);