Esempio n. 1
0
        public ActionResult GetTrafficCountIp(DateTime startDateTime, DateTime endDateTime)
        {
            if (Context == null || string.IsNullOrWhiteSpace(Context.UserId))
            {
                return(CreateResponse("Unauthorized"));
            }

            List <TrafficCountPerIp> data = dataCore.GetTrafficCountIp(ObjectId.Parse(Context.UserId), startDateTime, endDateTime);

            return(CreateResponse(data: JsonConvert.SerializeObject(data), success: true));
        }