public byte[] GetPhoto(int pid)
 {
     return(ctx.GetPhoto(pid).FirstOrDefault());
 }