예제 #1
0
        //Insert
        public void NewPaytmCus(PaytmCustomers paytm)
        {
            //Change Date formate---

            string DOB = paytm.DOB.ToString();
            string Doa = Convert.ToString(paytm.DateofAccount);

            DOB = Convert.ToString(DOB);
            DOB = DOB.Substring(0, 10);

            paytm.DOB = DOB;
            paytm.DateofAccount = Doa;

            _unitOfWork.Repository<PaytmCustomers>().Insert(paytm);
            _unitOfWork.Save();
        }
예제 #2
0
 //Delete
 public void DeletePaytmCus(PaytmCustomers paytm)
 {
     _unitOfWork.Repository<PaytmCustomers>().Delete(paytm);
     _unitOfWork.Save();
 }
예제 #3
0
 //ForgetPassword
 public ActionResult ForgetPass(PaytmCustomers paytm)
 {
     _loginBo.ForgetPassword(paytm.Email, paytm.Question, paytm.Answer);
     return View();
 }
예제 #4
0
 //Delete
 public ActionResult Delete(PaytmCustomers paytm)
 {
     _paytmBo.DeletePaytmCus(paytm);
     return View();
 }
예제 #5
0
 //UpdatePaytm
 public ActionResult UpdatePaytm(PaytmCustomers paytm)
 {
     _paytmBo.UpdatePaytmCus(paytm);
     return View();
 }
예제 #6
0
 //Insert
 public ActionResult Insert(PaytmCustomers paytm)
 {
     _paytmBo.NewPaytmCus(paytm);
     return View();
 }