void HandleSuccess(BusinessCategoryList obj)
        {
            var tempList = new List <BusinessCategory> ();

            try
            {
                foreach (var listItem in obj.Data)
                {
                    var item = new BusinessCategory()
                    {
                        ID       = listItem[0],
                        Name     = listItem[1],
                        Category = listItem[2]
                    };

                    tempList.Add(item);
                    _dataManager.InsertItem(item);
                }


                var test = _dataManager.GetAllItems();
                BusinessCategories = tempList;
            }
            catch (Exception ex)
            {
                var msg = ex.Message;
                throw;
            }
        }
 public void InsertItem(BusinessCategory category)
 {
     using (var db = new SQLite.SQLiteConnection(DBHelper.DBPath))
     {
         db.Insert(category);
     }
 }