code guidelines

This commit is contained in:
Paul Schneider 2020-10-09 19:35:39 +01:00
commit 492427f4b8
82 changed files with 470 additions and 375 deletions

View file

@ -14,7 +14,7 @@ namespace Yavsc.Controllers
[Route("api/blogcomments")]
public class CommentsApiController : Controller
{
private ApplicationDbContext _context;
private readonly ApplicationDbContext _context;
public CommentsApiController(ApplicationDbContext context)
{
@ -158,4 +158,4 @@ namespace Yavsc.Controllers
return _context.Comment.Count(e => e.Id == id) > 0;
}
}
}
}