public ActionResult Edit([Bind(Include = "lender_id,bankname,branchname,ifsc,b_email,contact_no,password")] Lender lender) { if (ModelState.IsValid) { db.Entry(lender).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(lender)); }
public ActionResult Edit([Bind(Include = "d_id,company_name,d_address,email,contact_no,password")] Dealer dealer) { if (ModelState.IsValid) { db.Entry(dealer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dealer)); }
public ActionResult Edit([Bind(Include = "u_id,firstname,lastname,email,mobile_no,password")] User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(user)); }
public ActionResult Edit([Bind(Include = "c_id,d_id,car_manufacturer,car_model,car_type,price,power,fuel_tank,airbag,gear,mileage,img")] Car car) { if (ModelState.IsValid) { db.Entry(car).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.d_id = new SelectList(db.Dealer, "d_id", "company_name", car.d_id); return(View(car)); }
public ActionResult Edit([Bind(Include = "fp_id,u_id,d_id,c_id,downpayment,user_address,mode")] FullPayment fullPayment) { if (ModelState.IsValid) { db.Entry(fullPayment).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.c_id = new SelectList(db.Car, "c_id", "car_manufacturer", fullPayment.c_id); ViewBag.d_id = new SelectList(db.Dealer, "d_id", "company_name", fullPayment.d_id); ViewBag.u_id = new SelectList(db.User, "u_id", "firstname", fullPayment.u_id); return(View(fullPayment)); }
public ActionResult Edit([Bind(Include = "loan_id,lender_id,downpayment,u_id,c_id,d_id,loan_period,emi,user_address,id_proof,income_certificate,income_tax_return,address_proof,gnn,gnn_address,gnn_address_p")] LoanRequest loanRequest) { if (ModelState.IsValid) { db.Entry(loanRequest).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.c_id = new SelectList(db.Car, "c_id", "car_manufacturer", loanRequest.c_id); ViewBag.d_id = new SelectList(db.Dealer, "d_id", "company_name", loanRequest.d_id); ViewBag.lender_id = new SelectList(db.Lender, "lender_id", "bankname", loanRequest.lender_id); ViewBag.u_id = new SelectList(db.User, "u_id", "firstname", loanRequest.u_id); return(View(loanRequest)); }