public async Task Handle(SalaryAccordingDayDomainEvent notification, CancellationToken cancellationToken)
        {
            var NumOfDays = notification.attendance.days;

            var SalaryFromEvent = Int32.Parse(NumOfDays) * 150;

            var Salary = new Salary.Dmoain.AggregatesModel.SalaryAggregate.salary(1, SalaryFromEvent);


            SalaryRepository.Add(Salary);
        }
Exemplo n.º 2
0
 public void Update(Salary.Dmoain.AggregatesModel.SalaryAggregate.salary Salary)
 {
     _context.Entry(Salary).State = EntityState.Modified;
 }
Exemplo n.º 3
0
 public Salary.Dmoain.AggregatesModel.SalaryAggregate.salary Add(Salary.Dmoain.AggregatesModel.SalaryAggregate.salary Salary)
 {
     return(_context.Salary.Add(Salary).Entity);
 }