Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error CS0246 The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference
- code
- using BoardGamesApi.Data;
- using BoardGamesApi.Models;
- using Microsoft.AspNetCore.Authorization;
- using Microsoft.AspNetCore.Mvc;
- using Microsoft.Extensions.Logging;
- using Microsoft.AspNetCore.Http;
- namespace BoardGamesApi.Controllers
- {
- /// <summary>
- /// Games endpoint of Board Games API.
- /// </summary>
- [ApiController]
- [ApiConventionType(typeof(DefaultApiConventions))]
- [ApiVersion("1", Deprecated = true)]
- [Authorize]
- [Route("api/games")]
- [Route("api/v{api-version:apiVersion}/games")]
- public class GamesController : Controller
- {
- private readonly IGamesRepository _gamesRepository;
- private readonly ILogger<GamesController> _logger;
- ........
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement