public ActionResult GetTrafficSizeIp(DateTime startDateTime, DateTime endDateTime) { if (Context == null || string.IsNullOrWhiteSpace(Context.UserId)) { return(CreateResponse("Unauthorized")); } List <TrafficSizePerIp> data = dataCore.GetTrafficSizeIp(ObjectId.Parse(Context.UserId), startDateTime, endDateTime); return(CreateResponse(data: JsonConvert.SerializeObject(data), success: true)); }