public ActionResult PlanVsDispatch(PlanDispatchModel orderPlan) { orderPlan.FetchDetails.id = 100; ViewBag.currentMonthPlanCount = _vehicleModel.GetPlanQuantity_CurrentMonth(100); PlanDispatchModel planDispatcDetails = _vehicleModel.GetPlanDetails(orderPlan.FetchDetails); //fetching plan details of reveived month orderPlan.PlanDispatchDetails = planDispatcDetails.PlanDispatchDetails; ViewBag.Message = "Your application description page."; return(View(orderPlan)); }
public ActionResult PlanVsDispatch() { Session["currentMonthPlanCount"] = _vehicleModel.GetPlanQuantity_CurrentMonth(100); Session["currentMonthDispatchCount"] = _vehicleModel.GetDispatchQuantity_CurrentMonth(100); Session["currentMonthApproveCount"] = _vehicleModel.GetApproveQuantity_CurrentMonth(100); Session["currentMonthMyDispatchCount"] = _vehicleModel.GetMyDispatched_CurrentMonth(100); ViewBag.Message = "Your application description page."; PlanDispatchModel orderPlan = new PlanDispatchModel(); orderPlan.FetchDetails = new FetchPlanDatetime { id = 100, PlanYear = DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() }; PlanDispatchModel planDispatcDetails = _vehicleModel.GetPlanDetails(orderPlan.FetchDetails); //fetching plan details of reveived month orderPlan.PlanDispatchDetails = planDispatcDetails.PlanDispatchDetails; ViewBag.Message = "Your application description page."; return(View(orderPlan)); }