Example #1
0
		public static async Task<Student> GetStudent(String strStudentID)
		{
			try
			{
				String result = await GetRESTCall("/student/" + strStudentID);
				if (!String.IsNullOrWhiteSpace(result))
				{
					RootStudent _RootObj = new RootStudent(result);
					return _RootObj.Result;
				}
				else
				{
					return null;
				}
			}
			catch
			{
				throw;
			}
		}
Example #2
0
        public static async Task <Student> GetStudent(String strStudentID)
        {
            try
            {
                String result = await GetRESTCall("/student/" + strStudentID);

                if (!String.IsNullOrWhiteSpace(result))
                {
                    RootStudent _RootObj = new RootStudent(result);
                    return(_RootObj.Result);
                }
                else
                {
                    return(null);
                }
            }
            catch
            {
                throw;
            }
        }