示例#1
0
        public int CopToSQL(string business_id, [FromQuery] string access_token)
        {
            int count = 0;

            if (access_token != "@bazavietnam")
            {
                return(count);
            }
            var fb = new FirebaseShortcutRepository(new FirebaseFactory(_appSettings));

            foreach (var t in fb.GetShortcuts(business_id, new Paging {
                Limit = 10
            }).Result)
            {
                count++;
                _shortcutService.Create(t.Object);
            }
            return(count);
        }