Beispiel #1
0
        public IActionResult Find([FromBody] MenuSearch menuSearch)
        {
            if (menuSearch == null)
            {
                return(BadRequest("Ill-formed search object."));
            }

            var foundMenus = mapper.Map <IEnumerable <Menu>, IEnumerable <PePeMenu> >(menuManager.Find(menuSearch));

            return(Json(foundMenus));
        }