public Photo GetAlbumPhoto(Guid idAlbum)
{
var c = dal.GetAllPhotoForAlbum(idAlbum);
Photo photo1;
if (c.Count()!= 0)
{ photo1 = c.ElementAt(0); }
else photo1 = null;
for (int i = 1; i < c.Count(); i++)
{
if (photo1.Data < c.ElementAt(i).Data)
photo1 = c.ElementAt(i);
}
return photo1;/////////////////////////////////////////////////////////////
}