public BaseController(ChatValuesContext context) { _context = context; if (User != null) { var userClaim = (ClaimsIdentity)User.Identity; var userIdVal = userClaim.Claims.Where <Claim>(c => c.Type == ClaimTypes.NameIdentifier).ToList(); if (userIdVal != null) { IsLoggedInUser = true; } else { IsLoggedInUser = false; } } }
public PaymentController(ChatValuesContext context) : base(context) { }
public OnlineUserWP(ChatValuesContext context, IHostingEnvironment env) { this.hostingEnv = env; this._context = context; }
public AccountController(ChatValuesContext context, IHostingEnvironment env, EmailManager emailManager) : base(context) { this.hostingEnv = env; this.emailManager = emailManager; }
public JobCardExpiryTimer(ChatValuesContext context, IConfiguration configuration, EmailManager emailManager) : base(configuration, "JobCardExpiryTimer:Interval") { _emailManager = emailManager; _configuration = configuration; _context = context; }
public SessionController(ChatValuesContext context, IHostingEnvironment env) : base(context) { this.hostingEnv = env; }
public JobCentreController(ChatValuesContext context) : base(context) { }
public VoucherTransferTimer(ChatValuesContext context, IConfiguration configuration) : base(configuration, "JobCardExpiryTimer:Interval") { _context = context; }
public HomeController(ChatValuesContext context) : base(context) { }
public ContactCentreController(ChatValuesContext context, IHostingEnvironment env) : base(context) { this.hostingEnv = env; }