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