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

            List <DataLog> dataLogList = dataCore.GetDataLogs(ObjectId.Parse(Context.UserId));

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