示例#1
0
        public async Task <JsonResult> List()
        {
            var result = await _modeloService.ListAllAsync();

            if (result != null)
            {
                return(Json(result.ToList()));
            }
            else
            {
                return(Json(null));
            }
        }