public ListController(ListNestDbContext dbContext, IMapper mapper, IListService listService) { _dbContext = dbContext; _mapper = mapper; _listService = listService; }
public ListHub(ListNestDbContext dbcontext, IListService listService, IListItemService listItemService, IMapper mapper) { _dbcontext = dbcontext; _listService = listService; _listItemService = listItemService; _mapper = mapper; }
public void CreateSampleDataset(ListNestDbContext context) { foreach (var list in DbValues.Lists) { context.Lists.Add(list); } foreach (var listItem in DbValues.ListItems) { context.ListItems.Add(listItem); } }
public ListService(ListNestDbContext dbContext) { _dbContext = dbContext; }