Пример #1
0
        public async Task<JsonResult> Search()
        {
            using (var svc = new Services.DataProvider("agent"))
            {
                var list = await svc.Get<IList<Models.Agent>>();

                return Json(list);
            }
        }
Пример #2
0
        public async Task<JsonResult> GetAssets()
        {
            using (var svc = new Services.DataProvider("report/assets"))
            {
                var item = await svc.Get<Models.RejectionCounter>();

                return Json(item);
            }
        }
Пример #3
0
        public async Task <JsonResult> GetAssets()
        {
            using (var svc = new Services.DataProvider("report/assets"))
            {
                var item = await svc.Get <Models.RejectionCounter>();

                return(Json(item));
            }
        }
Пример #4
0
        public async Task <JsonResult> Search()
        {
            using (var svc = new Services.DataProvider("bookmaker"))
            {
                var list = await svc.Get <IList <Models.Bookmaker> >();

                return(Json(list));
            }
        }
Пример #5
0
        public async Task <JsonResult> Search()
        {
            using (var svc = new Services.DataProvider("maintenance"))
            {
                var list = await svc.Get <IList <Models.Maintenance> >();

                return(Json(list));
            }
        }
Пример #6
0
        private async Task<Models.RejectionRate> command(Guid agentId)
        {
            using (var svc = new Services.DataProvider("report", new Dictionary<string, object> { { "id", agentId } }))
            {
                var item = await svc.Get<Models.RejectionRate>();
                item.ID = agentId;

                return item;
            }
        }
Пример #7
0
        public async Task <JsonResult> Search(int page = 0, int size = 8)
        {
            using (var svc = new Services.DataProvider("rejection", new Dictionary <string, object> {
                { "page", page },
                { "size", size }
            }))
            {
                var list = await svc.Get <Models.Pagination <Models.Rejection> >();

                return(Json(list));
            }
        }
Пример #8
0
        public async Task<JsonResult> Search(DateTime? date, int page = 0, int size = 8)
        {
            using (var svc = new Services.DataProvider("betlist", new Dictionary<string, object> {
                { "page", page },
                { "size", size }
            }))
            {
                var list = await svc.Get<Models.Pagination<Models.Event>>();

                return Json(list);
            }
        }
Пример #9
0
        private async Task <Models.RejectionRate> command(Guid agentId)
        {
            using (var svc = new Services.DataProvider("report", new Dictionary <string, object> {
                { "id", agentId }
            }))
            {
                var item = await svc.Get <Models.RejectionRate>();

                item.ID = agentId;

                return(item);
            }
        }