public TodoController(TodoContext context, ILogger <TodoController> logger, IOLPRRService lustService) { _logger = logger; _context = context; _lustService = lustService; if (_context.TodoItems.Count() == 0) { _context.TodoItems.Add(new TodoItem { Name = "Item1" }); _context.SaveChanges(); } }
public OLPRRController(ILogger <OLPRRController> logger, IOLPRRService olprrService) { _logger = logger; _olprrService = olprrService; }