Ejemplo n.º 1
0
        public async Task <IActionResult> LookUp()
        {
            try
            {
                var data = await _menuManager.Look_up();

                return(Ok(data.Select(x => new { Value = x.Id, Title = x.Name })));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex.Message));
            }
        }