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

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

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