Ejemplo n.º 1
0
        public async Task <IActionResult> GetSelectJson(string keyValue)
        {
            var list = await _patientApp.GetSelectOptions(keyValue);

            var data = list.Select(t => new
            {
                id          = t.Id,
                name        = t.Name,
                recordNo    = t.RecordNo,
                py          = t.Py,
                idealWeight = t.IdealWeight,
                beInfected  = t.BeInfected
            }).OrderBy(t => t.py);

            return(Content(data.ToJson()));
        }