Exemplo n.º 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>();
 }
Exemplo n.º 2
0
 public ObjectifController([FromServices] IObjectifDataContext objCtx, [FromServices] IUserDataContext userCtx)
 {
     this.objCtx  = objCtx;
     this.userCtx = userCtx;
     objVm        = new ObjectifViewModel();
 }
Exemplo n.º 3
0
 public NotificationController([FromServices] IObjectifDataContext objCtx, [FromServices] IUserDataContext userCtx)
 {
     this.objCtx  = objCtx;
     this.userCtx = userCtx;
 }
Exemplo n.º 4
0
 public DashBoardController([FromServices] IUserDataContext userCtx, [FromServices] IObjectifDataContext objCtx)
 {
     this.userCtx = userCtx;
     this.objCtx  = objCtx;
 }