//[Route("venues/{venueId}/menucategories", Name = nameof(GetMenuCategories))] public IActionResult GetMenuCategories(Guid venueId) { var menuCategories = venuesService.GetMenu(venueId); var model = mapper.ProjectTo <Category, CategoryVM>(menuCategories).AsQueryable(); return(Ok(model)); }