Exemple #1
0
 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();
     }
 }
Exemple #2
0
 public OLPRRController(ILogger <OLPRRController> logger, IOLPRRService olprrService)
 {
     _logger       = logger;
     _olprrService = olprrService;
 }