My view currently sends the GenreId to the Controller. The method has the following Linq:- <pre>var query =( from DM in c.DiscMain where DM.GenreId==GenreId orderby DM.DiscNo descending select DM).Take(1); return Json(query);
... Where( x => x.genre == z ).Max( x => x.id ).SingleOrDefault();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)