public ActionResult Details(int id) { // string message = "Store.Details.id=" + id; // var album = new album { Title = "Album" + id }; Maticsoft.BLL.album albumbll = new Maticsoft.BLL.album(); var Album = albumbll.GetModelAll(id); return(View(Album)); }
/// <summary> /// 分页获取数据列表 /// </summary> //public DataSet GetList(int PageSize,int PageIndex,string strWhere) //{ //return dal.GetList(PageSize,PageIndex,strWhere); //} #endregion BasicMethod #region ExtensionMethod public List <Maticsoft.Model.genre> GetgenreWithAlbum(String strWhere) { List <Maticsoft.Model.genre> genrelist = new List <Model.genre>(); List <Maticsoft.Model.genre> returnlist = new List <Model.genre>(); genrelist = GetModelList(strWhere); foreach (var genre in genrelist) { List <Maticsoft.Model.album> albumlist = new List <Model.album>(); Maticsoft.BLL.album albumbll = new album(); albumlist = albumbll.GetModelList("GenreId=" + genre.GenreId); genre.Albums = albumlist; returnlist.Add(genre); } return(returnlist); }