public ListController(ShopingListDBContext context, IMapper mapper, IMediator mediator)//, IConfiguration configuration) { _context = context; _mapper = mapper; _mediator = mediator; }
public UserController(ShopingListDBContext context, IMapper mapper, IConfiguration configuration, IMediator mediator) { _context = context; _mapper = mapper; _configuration = configuration; _mediator = mediator; }
public async Task InvokeAsync(HttpContext context, ShopingListDBContext _context) { // Call the next delegate/middleware in the pipeline await _next(context); var respons = context.Response; if (respons.Headers.ContainsKey("command")) { var command = respons.Headers["command"]; int id1 = int.Parse(respons.Headers["id1"]); int id2 = int.Parse(respons.Headers["id2"]); var userList = await WebApiHelper.GetuUserIdFromListAggrIdAsync(id2, _context); await _mediator.Publish(new AddEditSaveDeleteListItemEvent(userList, "Edit/Save_ListItem", id1, id2)); } }
public GetUserIdFromListAggrIdCommandHandler(ShopingListDBContext context) { _context = context; }
public CustomRequirePermissionLevelHandler(IHttpContextAccessor httpContextAccessor, ShopingListDBContext dBContext) { _httpContextAccessor = httpContextAccessor; _dBContext = dBContext; }
public static async Task <IEnumerable <int> > GetuUserIdFromListAggrIdAsync(int listAggrId, ShopingListDBContext _context) { var userList = await _context.UserListAggregators.Where(a => a.ListAggregatorId == listAggrId).Select(a => a.UserId).ToListAsync(); return(userList); }
public InvitationController(ShopingListDBContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public DeleteListHandler(ShopingListDBContext context, IMapper mapper) : base(context, mapper) { }
public CreateAddListCommandHandler(ShopingListDBContext context, IMapper mapper) : base(context, mapper) { }
public BaseForHandler(ShopingListDBContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public SavePropertyCommandHandler(ShopingListDBContext context, IMapper mapper) { _context = context; _mapper = mapper; }