public tbl_Photo GetPhoto(int id) { DBPhotoDataContext db = new DBPhotoDataContext(); return(db.tbl_Photos.FirstOrDefault(x => x.PhotoId == id)); }
public List <tbl_Photo> GetPhotoLists() { DBPhotoDataContext db = new DBPhotoDataContext(); return(db.tbl_Photos.ToList()); }
public List <tbl_Album> GetAlbumLists() { DBPhotoDataContext db = new DBPhotoDataContext(); return(db.tbl_Albums.ToList()); }
public tbl_Album GetAlbum(int id) { DBPhotoDataContext db = new DBPhotoDataContext(); return(db.tbl_Albums.FirstOrDefault(x => x.AlbumId == id)); }
public List <tbl_User> GetUserLists() { DBPhotoDataContext db = new DBPhotoDataContext(); return(db.tbl_Users.ToList()); }