Example #1
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult Edit(int id)
        {
            var model = _warehouseS.GetModel(c => c.WarehouseId == id);

            if (model == null)
            {
                return(Content("查找不到数据!"));
            }
            return(View(model));
        }
Example #2
0
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public BaseWarehouseTable GetModel(string CODE)
 {
     return(dal.GetModel(CODE));
 }