コード例 #1
0
        public ActionResult GetLineGraphData(DateTime startDateTime, DateTime endDateTime)
        {
            if (Context == null || string.IsNullOrWhiteSpace(Context.UserId))
            {
                return(CreateResponse("Unauthorized"));
            }

            List <LineGraphData> lineGraphData = dataCore.GetLineGraphData(ObjectId.Parse(Context.UserId), startDateTime, endDateTime);

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