public ActionResult GeneralRequisition() { var user = (ViewUser)Session["user"]; ViewCreateGeneralRequsitionModel model = new ViewCreateGeneralRequsitionModel { RequisitionByUserId = user.UserId }; CreateTempRequisitionXmlFile(); List <RequisitionFor> requisitionFors = _iCommonManager.GetAllRequisitionForList().ToList(); ViewBag.RequisitionForId = new SelectList(requisitionFors, "RequisitionForId", "Description"); return(View(model)); }
public ActionResult GeneralRequisition() { try { var user = (ViewUser)Session["user"]; ViewCreateGeneralRequsitionModel model = new ViewCreateGeneralRequsitionModel { RequisitionByUserId = user.UserId }; CreateTempRequisitionXmlFile(); List <RequisitionFor> requisitionFors = _iCommonManager.GetAllRequisitionForList().ToList(); ViewBag.RequisitionForId = new SelectList(requisitionFors, "RequisitionForId", "Description"); return(View(model)); } catch (Exception exception) { Log.WriteErrorLog(exception); return(PartialView("_ErrorPartial", exception)); } }