/// <summary> /// -根据ID查询第一张图片url /// </summary> /// <param name="ID"></param> /// <returns></returns> public string BLL_select_phoaddress_where_photoalbumID(int ID) { string stre = new DAL_photo().DAL_select_phoaddress_where_photoalbumID(ID); //if (stre == null) //{ // string a = @"~/photo/00000000.jpg"; // return a; //} //else //{ return(stre); //} }
/// <summary> /// BLL根据相册ID查询该相册下的所有图片 /// </summary> /// <param name="phbumID">相册ID </param> /// <returns> list集合</returns> public List <string> BLL_select_phototable_where_photoalbumID(int phbumID) { List <string> list = new List <string>(); list = new DAL_photo().DAL_select_phototable_where_photoalbumID(phbumID); //int a= list.Count; //if (a==0) //{ // string ttt = @"~\Photo\00000000.jpg"; // list.Add(ttt); // return list; //} //else //{ return(list); //} }