public GetMenuItemResponse GetMenuItem(GetMenuItemRequest request) { GetMenuItemResponse response = new GetMenuItemResponse(); MenuItem menuItem = _menuItemRepository .FindBy(request.MenuItemId); if (menuItem != null) { response.MenuItemFound = true; response.MenuItem = menuItem.ConvertToMenuItemView(); } else { response.MenuItemFound = false; } return(response); }