Beispiel #1
0
 public Response GetShareUser(GetShareUserRequest request)
 {
     try
     {
         var userDs = _dal.GetShareUser(request.DocId);
         var retval = new GetShareUserResponseOK();
         if (userDs.Tables.Count > 0)
         {
             var tbl = userDs.Tables[0];
             foreach (DataRow row in tbl.Rows)
             {
                 User user = new User();
                 user.EmailAddress = (string)row[0];
                 user.UserName     = (string)row[1];
                 retval.Users.Add(user);
             }
         }
         return(retval);
     }
     catch (Exception ex)
     {
         return(new ResponseError(ex.Message));
     }
 }
Beispiel #2
0
 public Response GetShareUser(GetShareUserRequest request)
 {
     return(_service.GetShareUser(request));
 }