public ActionResult Index(string IndexType) { int PackingDocumenttType = 242; if (IndexType == "PTS") { return(RedirectToAction("Index_PendingToSubmit")); } else if (IndexType == "PTR") { return(RedirectToAction("Index_PendingToReview")); } IQueryable <PackingHeaderViewModel> temp = _PackingHeaderService.GetPackingHeaderList(User.Identity.Name); IQueryable <PackingHeaderViewModel> p = from L in temp where L.DocTypeId == PackingDocumenttType select L; ViewBag.id = PackingDocumenttType; ViewBag.PendingToSubmit = PendingToSubmitCount(); ViewBag.PendingToReview = PendingToReviewCount(); ViewBag.IndexStatus = "All"; return(View(p)); }
public ActionResult Index(int id, string IndexType)//DocTypeId { if (IndexType == "PTS") { return(RedirectToAction("Index_PendingToSubmit", new { id })); } else if (IndexType == "PTR") { return(RedirectToAction("Index_PendingToReview", new { id })); } IQueryable <PackingHeaderIndexViewModel> p = _PackingHeaderService.GetPackingHeaderList(id, User.Identity.Name); PrepareViewBag(id); ViewBag.PendingToSubmit = PendingToSubmitCount(id); ViewBag.PendingToReview = PendingToReviewCount(id); ViewBag.IndexStatus = "All"; return(View(p)); }