daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. List<Product> myMvm = db.Products.ToList();
  2.         List<Griedview> MyViewList = myMvm.Select(x => new Griedview
  3.         {
  4.             ProductID = x.ProductID,
  5.             ProductName = x.ProductName,
  6.             UnitPrice = x.UnitPrice,
  7.             Discontinued = x.Discontinued,
  8.             UnitsInStock = x.UnitsInStock
  9.         }).ToList();
  10.  
  11.  
  12.         return Json(MyViewList, JsonRequestBehavior.AllowGet);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top