예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int centerId = (int)Session["id"];

            showGridView.DataSource = aStockManager.GetAll(centerId);
            showGridView.DataBind();
        }
        // GET: StockReport
        public ActionResult Index()
        {
            //var stock = _stockManager.GetAll();
            //StockReadVM model = new StockReadVM();
            //model.StockCreateVMs = Mapper.Map<IList<StockCreateVM>>(stock);
            var model = _stockManager.GetAll();

            return(View(model));
        }
        // GET: /Stock/
        public ActionResult Index()
        {
            var assetpurchaseheaders = _stockManager.GetAll();

            return(View(assetpurchaseheaders.ToList()));
        }