Example #1
0
        public string GetProjectNumber(string MoldNumber)
        {
            string _url    = "/Project/GetProjectNumber?MoldNumber=" + MoldNumber;
            string _return = _server.ReceiveStream(_url);

            return(_return);
        }
Example #2
0
        public int GetUserID(string UserName)
        {
            string _url = "/User/GetUserByName?UserName=" + UserName;

            string data = _server.ReceiveStream(_url);

            User _user = JsonConvert.DeserializeObject <User>(data);

            try
            {
                return(_user.UserID);
            }
            catch
            {
                return(0);
            }
        }