Example #1
0
 public ThongBaoController(IThongBaoService thongBaoService, Datacontext datacontext, IHubContext <SignalRHub> hubContext)
 {
     _thongBaoService = thongBaoService;
     _datacontext     = datacontext;
     _hubContext      = hubContext;
 }
 public HomeController(IThongBaoService thongBaoService)
 {
     this._thongBaoService = thongBaoService;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="config"></param>
 /// <param name="thongBaoService"></param>
 public ThongBaoController(IConfiguration config, IThongBaoService thongBaoService)
 {
     _config          = config;
     _thongBaoService = thongBaoService;
 }
 public ThongBaoController(IThongBaoService thongBaoService, IMapper mapper)
 {
     this.thongBaoService = thongBaoService;
     this.mapper          = mapper;
 }
 public ThongBaoController(ErrorService errorService, IThongBaoService thongBaoService) : base(errorService)
 {
     this._thongBaoService = thongBaoService;
 }