Esempio n. 1
0
        public async Task <IActionResult> GetList(string name = "", long parentId = 0, int status = -1, int pageSize = 10, int pageNumber = 0)
        {
            try
            {
                var data = await _menuManager.Get_list(name, parentId, status, pageSize, pageNumber);

                return(Ok(data));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex.Message));
            }
        }