Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Error CS0246 The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference
  2.  
  3. code
  4. using BoardGamesApi.Data;
  5. using BoardGamesApi.Models;
  6. using Microsoft.AspNetCore.Authorization;
  7. using Microsoft.AspNetCore.Mvc;
  8. using Microsoft.Extensions.Logging;
  9. using Microsoft.AspNetCore.Http;
  10.  
  11. namespace BoardGamesApi.Controllers
  12. {
  13. /// <summary>
  14. /// Games endpoint of Board Games API.
  15. /// </summary>
  16. [ApiController]
  17. [ApiConventionType(typeof(DefaultApiConventions))]
  18. [ApiVersion("1", Deprecated = true)]
  19. [Authorize]
  20. [Route("api/games")]
  21. [Route("api/v{api-version:apiVersion}/games")]
  22. public class GamesController : Controller
  23. {
  24. private readonly IGamesRepository _gamesRepository;
  25. private readonly ILogger<GamesController> _logger;
  26. ........
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement