public ActionResult Index()
        {
            var roCreation      = _capitaContext.RoleMaterialCreations.ToList();
            var vmPurchaseOrder = new purchaseVm
            {
                rolematarials = roCreation,
            };

            return(View(vmPurchaseOrder));
        }
        //Create Po
        public ActionResult redirectToPo(int id)
        {
            var roCreation = _capitaContext.RoleMaterialCreations.ToList();
            var vendorUser = _capitaContext.VendorMasters.SingleOrDefault(v => v.S_No == id);

            if (vendorUser == null)
            {
                return(HttpNotFound());
            }

            var vendorVM = new purchaseVm
            {
                vendormasterDetails = vendorUser,
                rolematarials       = roCreation
            };

            return(View("Index", vendorVM));
        }