//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(); }
//Delete public void DeletePaytmCus(PaytmCustomers paytm) { _unitOfWork.Repository<PaytmCustomers>().Delete(paytm); _unitOfWork.Save(); }
//ForgetPassword public ActionResult ForgetPass(PaytmCustomers paytm) { _loginBo.ForgetPassword(paytm.Email, paytm.Question, paytm.Answer); return View(); }
//Delete public ActionResult Delete(PaytmCustomers paytm) { _paytmBo.DeletePaytmCus(paytm); return View(); }
//UpdatePaytm public ActionResult UpdatePaytm(PaytmCustomers paytm) { _paytmBo.UpdatePaytmCus(paytm); return View(); }
//Insert public ActionResult Insert(PaytmCustomers paytm) { _paytmBo.NewPaytmCus(paytm); return View(); }