public ServiceResult UpdateUser(Guid accountID, CorpUserInfo userInfo)
 {
     ContactsServiceModel model = new ContactsServiceModel();
     OperateStatus status = model.UpdateUser(accountID, userInfo);
     return new ServiceResult(status);
 }
 public ServiceResult InviteUser(Guid accountID, string userID)
 {
     ContactsServiceModel model = new ContactsServiceModel();
     OperateStatus status = model.InviteUser(accountID, userID);
     return new ServiceResult(status);
 }
 public ServiceResult GetUserByDeparment(Guid accountID, string departmentID, bool fetchChild, int enumStatus, bool getDetail)
 {
     ContactsServiceModel model = new ContactsServiceModel();
     OperateStatus status = model.GetUserByDeparment(accountID, departmentID, fetchChild, enumStatus, getDetail);
     return new ServiceResult(status);
 }
 /// <summary>
 /// 更新用户信息
 /// </summary>
 /// <param name="accountID">账号ID</param>
 /// <param name="userInfo">用户信息</param>
 /// <returns>操作结果</returns>
 public OperateStatus UpdateUser(Guid accountID, CorpUserInfo userInfo)
 {
     ContactsServiceModel model = new ContactsServiceModel();
     return model.UpdateUser(accountID, userInfo);
 }
 /// <summary>
 /// 邀请用户
 /// </summary>
 /// <param name="accountID">账号ID</param>
 /// <param name="userID">用户ID</param>
 /// <returns>操作结果</returns>
 public OperateStatus InviteUser(Guid accountID, string userID)
 {
     ContactsServiceModel model = new ContactsServiceModel();
     return model.InviteUser(accountID, userID);
 }
 /// <summary>
 /// 根据用户ID获取用户信息
 /// </summary>
 /// <param name="accountID">账号ID</param>
 /// <param name="userID">用户ID</param>
 /// <returns>操作结果,CorpUserInfo</returns>
 public OperateStatus GetUserByID(Guid accountID, string userID)
 {
     ContactsServiceModel model = new ContactsServiceModel();
     return model.GetUserByID(accountID, userID);
 }