Пример #1
0
        public Laboratory Get(long userId, long labId)
        {
            var lab = requestBase.SendGetPathVariableAsync("/search/laboratories/", labId.ToString());

            if (lab != null)
            {
                if (lab.User != null)
                {
                    return(lab.User.Id == userId ? lab : null);
                }
            }

            return(null);
        }
Пример #2
0
 public User GetUserById(long id)
 {
     return(requestBase.SendGetPathVariableAsync("/search/users/", id.ToString()));
 }
Пример #3
0
 public Computer GetById(long id)
 {
     return(requestBase.SendGetPathVariableAsync("/search/computers/", id.ToString()));
 }