public HomeController(MysqlContext context, INormalCommentService normalCommentService) { //var options = new DbContextOptions<MysqlContext>(); //this._context = new MysqlContext(options); this._context = context; this._customerRepository = new EfRepository <Customer>(this._context); this._normalCommentService = normalCommentService; }
public CommentListViewComponent(INormalCommentService normalCommentService) { this._normalCommentService = normalCommentService; }
public CommentController(INormalCommentService normalCommentService, IPostTokenManagerService postTokenManagerService) { this._normalCommentService = normalCommentService; this._postTokenManagerService = postTokenManagerService; }