Ejemplo n.º 1
0
 public UserIdentity GetUser(Credentials c)
 {
     var cl = new Ref.FileSyncModelClient();
     try {
         UserIdentity u = null;
         u = cl.GetUser(c);
         cl.Close();
         if (u == null)
             throw new ActionException("Received a null object.", ActionType.User);
         return u;
     } catch (Exception ex) {
         cl.Abort();
         throw new ActionException("Unable to get user details for the given credentials.",
             ActionType.User, ex);
     }
 }