public ActionResult BAApprove()//approving by BA { var bookingID = Request.Form.Get("chckboxBA"); List <Customer_Vehicle_Booking1> cvblist1 = new List <Customer_Vehicle_Booking1>(); Customer_Vehicle_Booking1 cb = null; cvblist = DBOperations.ShowTOBranchAdmin(); foreach (var c in cvblist) { if (bookingID.Contains(c.Booking_id.ToString())) { c.Status = "Approved"; string cstatus = c.Status; int bookingid = c.Booking_id; DBOperations.BAapprove(cstatus, bookingid); // d.No_of_Vehicles_Available = d.No_of_Vehicles_Available - 1; } } return(View("SuccessfulBA")); }
public ActionResult GoToBA()//adding the confirmed selected records to Customer_Vehicle_Booking table with status as pending { Customer_Vehicle_Booking1 cvb1 = new Customer_Vehicle_Booking1(); cvb1.Status = "Pending"; string status = cvb1.Status; string cid = Session["username"].ToString(); string res = DBOperations.GoToBAdmin(vd, cid, status); ViewBag.msg = res; return(View("SuccessfulCustomer")); }