示例#1
0
        public static List <DropDownModel> GetCity()
        {
            var           CityList    = new List <DropDownModel>();
            DropDownModel objDropdown = new DropDownModel();

            var           _request    = _JwtTokenManager.GenerateToken(JsonConvert.SerializeObject(objDropdown));
            ResponseModel ObjResponse = CommonFile.GetApiResponseJWT(Constant.ApiGetCity, _request);

            CityList = JsonConvert.DeserializeObject <List <DropDownModel> >(ObjResponse.Response);

            return(CityList);
        }
示例#2
0
        public static List <ProductModel> GetProduct()
        {
            var           GetUserProductList = new List <ProductModel>();
            ProductModel  objmodel           = new ProductModel();
            var           _request           = _JwtTokenManager.GenerateToken(JsonConvert.SerializeObject(objmodel));
            ResponseModel ObjResponse        = CommonFile.GetApiResponseJWT(Constant.ApiGetProduct, _request);

            GetUserProductList = JsonConvert.DeserializeObject <List <ProductModel> >(ObjResponse.Response);



            return(GetUserProductList);
        }
示例#3
0
        public static List <DropDownModel> GetProfession()
        {
            var           ProfessionList = new List <DropDownModel>();
            DropDownModel objDropdown    = new DropDownModel();

            var           _request    = _JwtTokenManager.GenerateToken(JsonConvert.SerializeObject(objDropdown));
            ResponseModel ObjResponse = CommonFile.GetApiResponseJWT(Constant.ApiGetProfession, _request);

            ProfessionList = JsonConvert.DeserializeObject <List <DropDownModel> >(ObjResponse.Response);


            ////  var _request = JsonConvert.SerializeObject(objUserProfile);
            //ResponseModel ObjResponse = CommonFile.GetApiResponse(Constant.ApiGetProfession, "");
            //ProfessionList = JsonConvert.DeserializeObject<List<DropDownModel>>(ObjResponse.Response);
            return(ProfessionList);
        }
示例#4
0
        public static List <BusinessModel> GetUsersBusiness(long UserId)
        {
            var           GetUserBusinessList = new List <BusinessModel>();
            BusinessModel objmodel            = new BusinessModel();

            objmodel.UserId = UserId;

            var           _request    = _JwtTokenManager.GenerateToken(JsonConvert.SerializeObject(objmodel));
            ResponseModel ObjResponse = CommonFile.GetApiResponseJWT(Constant.ApiGetUserBusiness, _request);

            GetUserBusinessList = JsonConvert.DeserializeObject <List <BusinessModel> >(ObjResponse.Response);


            //var _request = JsonConvert.SerializeObject(objmodel);
            //ResponseModel ObjResponse = CommonFile.GetApiResponse(Constant.ApiGetUserBusiness, _request);
            //GetUserBusinessList = JsonConvert.DeserializeObject<List<BusinessModel>>(ObjResponse.Response);

            return(GetUserBusinessList);
        }