public AccountsController(UserManager <AppUser> userManager, IMapper mapper, PharmaContext appDbContext, IHttpContextAccessor httpContextAccessor) { _userManager = userManager; _mapper = mapper; _appDbContext = appDbContext; _caller = httpContextAccessor.HttpContext.User; }
public AuthController(PharmaContext appDbContext, UserManager <AppUser> userManager, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions) { _userManager = userManager; _jwtFactory = jwtFactory; _jwtOptions = jwtOptions.Value; _appDbContext = appDbContext; }
public static Doctor GetDoctor(ClaimsPrincipal _caller, PharmaContext _context) { var test = _caller.Claims.ToList(); var userId = _caller.Claims.Single(c => c.Type == "id"); var doctor = _context.Doctors.Include(c => c.Identity).Single(c => c.Identity.Id == userId.Value); return(doctor); }
public static Patient GetPatient(ClaimsPrincipal _caller, PharmaContext _context) { var test = _caller.Claims.ToList(); var userId = _caller.Claims.Single(c => c.Type == "id"); var patient = _context.Patients.Include(c => c.Identity).Single(c => c.Identity.Id == userId.Value); return(patient); }
public ClientService(PharmaContext pharmaContext) { _pharmaContext = pharmaContext; }
public DocumentsController(PharmaContext context, IHttpContextAccessor httpContextAccessor) { _context = context; _caller = httpContextAccessor.HttpContext.User; }
public HospitalsController(PharmaContext context) { _context = context; }
public PlanService(PharmaContext pharmaContext) { _pharmaContext = pharmaContext; }
public AccountService(PharmaContext context) { _context = context; }
public ReceptionsController(PharmaContext context, IHttpContextAccessor httpContextAccessor) { _context = context; _caller = httpContextAccessor.HttpContext.User; }
public DoctorRatingsController(PharmaContext context) { _context = context; }
public ProceduresController(PharmaContext context, IHttpContextAccessor httpContextAccessor) { _context = context; _caller = httpContextAccessor.HttpContext.User; }
public DashboardController(UserManager <AppUser> userManager, PharmaContext appDbContext, IHttpContextAccessor httpContextAccessor) { _caller = httpContextAccessor.HttpContext.User; _appDbContext = appDbContext; }