mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
minor reformatting
This commit is contained in:
parent
81d77be468
commit
33be5ec040
3 changed files with 7 additions and 4 deletions
|
|
@ -18,8 +18,7 @@ public ListsController(IListService listService)
|
|||
[HttpGet]
|
||||
public IActionResult Get()
|
||||
{
|
||||
var result = Json(_listService.GetAll());
|
||||
return result;
|
||||
return Json(_listService.GetAll());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,10 @@
|
|||
namespace FilterLists.Data.Contexts
|
||||
using FilterLists.Data.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FilterLists.Data.Contexts
|
||||
{
|
||||
public interface IFilterListsDbContext
|
||||
{
|
||||
DbSet<List> List { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ namespace FilterLists.Data.Repositories.Implementations
|
|||
[UsedImplicitly]
|
||||
public class ListRepository : IListRepository
|
||||
{
|
||||
private readonly FilterListsDbContext _filterListsDbContext;
|
||||
private readonly IFilterListsDbContext _filterListsDbContext;
|
||||
|
||||
public ListRepository(FilterListsDbContext filterListsDbContext)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue