public async static Task<SYS_tblUserLevelDRO> GetAllUserLevel(string url)
        {
            SYS_tblUserLevelDRO result = new SYS_tblUserLevelDRO();
            try
            {
                var response_data = await HttpGet(url);
                if (response_data.ToLower().StartsWith("error"))
                {
                    result.ResponseItem.IsError = true;
                    string[] tmp = response_data.Split('|');
                    result.ResponseItem.ErrorCode = tmp[1];
                    result.ResponseItem.ErrorMessage = tmp[2];
                }
                else
                {
                    var response_collection = JsonConvert.DeserializeObject<SYS_tblUserLevelDRO>(response_data + "");

                    if (response_collection != null)
                    {
                        result.UserLevelList = response_collection.UserLevelList;
                    }
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex);
                result.ResponseItem.Message = ex.Message;
            }

            return result;
        }
 private async void LoadAllUserLevel()
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         SYS_tblUserLevelDRO userLevel = new SYS_tblUserLevelDRO();
         userLevel = await SYS_tblUserLevelBUS.GetAllUserLevel(CommonEngine.userInfo.UserID, ConfigEngine.Language);
         if (!CommonEngine.CheckValidResponseItem(userLevel.ResponseItem)) return;
         gluUserLevel.DataSource = userLevel.UserLevelList;
         gluUserLevel.DisplayMember = "UserLevelName";
         gluUserLevel.ValueMember = "UserLevelID";
     }
     catch (Exception ex)
     {
         CommonEngine.ShowExceptionMessage(ex);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }