public ActionResult DocumentTypeIndex(int id)//DocumentCategoryId { var p = new DocumentTypeService(_unitOfWork).FindByDocumentCategory(id).ToList(); if (p != null) { if (p.Count == 1) { return(RedirectToAction("RateAmendtmentWizard", new { id = p.FirstOrDefault().DocumentTypeId })); } } return(View("DocumentTypeList", p)); }
public ActionResult DocumentTypeIndex(int id)//DocumentCategoryId { var p = new DocumentTypeService(_unitOfWork).FindByDocumentCategory(id).ToList(); //System.Web.HttpContext.Current.Session["MaterialPlanType"] = MaterialPlanTypeConstants.ProdOrder; if (p != null) { if (p.Count == 1) { return(RedirectToAction("Index", new { id = p.FirstOrDefault().DocumentTypeId })); } } return(View("DocumentTypeList", p)); }