Beispiel #1
0
        public async Task <IActionResult> Get()
        {
            var activtys = await _service.GetActivitys();

            //// Ref: https://stackoverflow.com/questions/13510204/json-net-self-referencing-loop-detected :
            //string js = JsonConvert.SerializeObject(activtys, new JsonSerializerSettings() {
            //    ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
            //});
            return(Ok(activtys));
        }