Example #1
0
 public static Employee readEmployee(string id)
 {
     Employee e = new Employee();
     e.Data = readDocument(id);
     return e;
 }
Example #2
0
 public byte[] GetPicture(Employee emp)
 {
     var att = emp.Data.GetAttachment(PICTURE_NAME);
     return att == null ? null : db.ReadAttachment(att);
 }