Пример #1
0
 /// <summary>
 /// Database context
 /// </summary>
 /// <param name="context">database</param>
 public ActivitiesReviewsController(BoPeepDbContext context)
 {
     _context = context;
 }
Пример #2
0
 /// <summary>
 /// Constructor that will be used to query database
 /// </summary>
 /// <param name="context">database context</param>
 public ReviewsService(BoPeepDbContext context)
 {
     _context = context;
 }
Пример #3
0
 /// <summary>
 /// Constructor that will be used to query database
 /// </summary>
 /// <param name="context">database context</param>
 public TagServices(BoPeepDbContext context)
 {
     _context = context;
 }
 /// <summary>
 /// Contructor that brings in dbcontext
 /// </summary>
 public TagActivitiesController(BoPeepDbContext context)
 {
     _context = context;
 }
Пример #5
0
 /// <summary>
 /// The constructor that is keeping all of the implementation
 /// </summary>
 /// <param name="context">from the database</param>
 /// <param name="reviewContext">from IReviewManger interface</param>
 /// <param name="tagContext">from ITagManager interface</param>
 public ActivityService(BoPeepDbContext context, IReviewManager reviewContext, ITagManager tagContext)
 {
     _context       = context;
     _reviewContext = reviewContext;
     _tagContext    = tagContext;
 }