Example #1
0
 public SweetsController(ISweetsDBService service, SweetsDBContext context)
 {
     _service = service;
     _service.InitContext(context);
 }
Example #2
0
 public void InitContext(SweetsDBContext _context)
 {
     context = _context;
 }