Ejemplo n.º 1
0
        public ActionResult GetAllCounters()
        {
            if (Context == null || string.IsNullOrWhiteSpace(Context.UserId))
            {
                return(CreateResponse("Unauthorized"));
            }

            Counters counters = dataCore.GetAllCounters(ObjectId.Parse(Context.UserId));

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