Esempio n. 1
0
 /// <summary>
 /// injects the db into the class
 /// </summary>
 /// <param name="context"> Database</param>
 public PaintService(HobbyListDbContext context)
 {
     _context = context;
 }
Esempio n. 2
0
 /// <summary>
 /// injects the db into the class
 /// </summary>
 /// <param name="context"> Database</param>
 public MiniWishListService(HobbyListDbContext context)
 {
     _context = context;
 }
Esempio n. 3
0
 public MiniModelService(HobbyListDbContext context, IPaint paint, ISupply supply)
 {
     _context = context;
     _paint   = paint;
     _supply  = supply;
 }