Beispiel #1
0
        public ActionResult SelectId(Goods info1)
        {
            GoodsManager gooid = new GoodsManager();
            var          lis   = gooid.GetEntitysWhereAsNoTracking(x => x.GoodsName == info1.GoodsName);
            var          list1 = lis.Select(x => new {
                x.GoodsId,
                x.GoodsName,
                x.Num,
                x.Price,
                x.Goods_Type.TypeName
            });

            return(Json(list1, JsonRequestBehavior.AllowGet));
        }