예제 #1
0
 public AccountController([FromServices] IObjectifDataContext objCtx,
                          [FromServices] IUserDataContext userCtx,
                          UserManager <ApplicationUser> userManager,
                          SignInManager <ApplicationUser> signInManager,
                          IEmailSender emailSender,
                          ISmsSender smsSender,
                          ILoggerFactory loggerFactory)
 {
     this.objCtx    = objCtx;
     this.userCtx   = userCtx;
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _smsSender     = smsSender;
     _logger        = loggerFactory.CreateLogger <AccountController>();
 }
예제 #2
0
 public ObjectifController([FromServices] IObjectifDataContext objCtx, [FromServices] IUserDataContext userCtx)
 {
     this.objCtx  = objCtx;
     this.userCtx = userCtx;
     objVm        = new ObjectifViewModel();
 }
예제 #3
0
 public NotificationController([FromServices] IObjectifDataContext objCtx, [FromServices] IUserDataContext userCtx)
 {
     this.objCtx  = objCtx;
     this.userCtx = userCtx;
 }
예제 #4
0
 public DashBoardController([FromServices] IUserDataContext userCtx, [FromServices] IObjectifDataContext objCtx)
 {
     this.userCtx = userCtx;
     this.objCtx  = objCtx;
 }