using Microsoft.AspNetCore.Mvc;
using Nest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using XYY.Data.Model.Standard.Tracking;
using XYY.Core.Standard.Mvc; 
using XYY.Core.Standard.Data.Infrastructure;
using XYY.Core.Standard;
using Dapper;
using System.Xml.Serialization;
using System.IO;
using System.Globalization;
using XYY.Service.Standard.TrackingService;

namespace XYY.API.Tracking.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class TrackingController : ControllerBase
    {

        ITrackingService iTrackingService;

        public TrackingController(ITrackingService iTrackingService)
        {
            this.iTrackingService = iTrackingService;
        }

        public async Task<ApiJsonModel> Post([FromBody] List<PostTrackingRequest> postTrackingRequest)
        {
            return await iTrackingService.Insert(postTrackingRequest);
        }
    }
}
