Exemplo n.º 1
0
        public ActionResult CreatWarehouse(string WarehouseName)
        {
            Warehouse warehouse = new Warehouse();

            warehouse.WarehouseName = WarehouseName;
            warehouse.CreatTime     = DateTime.Now;
            warehouseService.CreatWarehouse(warehouse);
            //StockLog log = new StockLog()
            //{
            //    AdminId = (int)Session["AdminId"],
            //    OperationRecord = "创建仓库",
            //    OperationTime = DateTime.Now,
            //    WarehouseId = warehouse.WarehouseId,
            //};
            //warehouseService.AddWarehouseLog(log);
            return(RedirectToAction("WarehouseList"));
        }