public BaseService(CrudApiContext context, IHttpContextAccessor httpContextAccessor) : base(context) { this.context = context; var name = httpContextAccessor.HttpContext.User.Identity.Name; userId = name is null ? Guid.Empty : Guid.Parse(name); }
public FoodService( CrudApiContext context, IMapper mapper, IHttpContextAccessor httpContextAccessor) : base(context, httpContextAccessor) { this.context = context; this.mapper = mapper; }
public ApplicationUserService( CrudApiContext context, IMapper mapper, IHttpContextAccessor httpContextAccessor, IPasswordUtils passwordUtils) : base(context, httpContextAccessor) { this.context = context; this.mapper = mapper; this.passwordUtils = passwordUtils; }
public RegistrationService( CrudApiContext context, IMapper mapper, IApplicationUserService userService, IPasswordUtils passwordUtils) { this.context = context; this.mapper = mapper; this.userService = userService; this.passwordUtils = passwordUtils; }
public AuthService( CrudApiContext context, IMapper mapper, IConfiguration configuration, IPasswordUtils passwordUtils, ITokenService tokenService, IHttpContextAccessor httpContextAccessor) : base(context, httpContextAccessor) { this.context = context; this.mapper = mapper; this.configuration = configuration; this.passwordUtils = passwordUtils; this.tokenService = tokenService; }
public RepositoryBase(CrudApiContext db, IReflectionService reflectionService) { Db = db; _reflectionService = reflectionService; }
public BaseEntityService(CrudApiContext context) => this.context = context;
public PersonRepository(CrudApiContext db, IReflectionService reflectionService) : base(db, reflectionService) { }