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); }
public void Update(Salary.Dmoain.AggregatesModel.SalaryAggregate.salary Salary) { _context.Entry(Salary).State = EntityState.Modified; }
public Salary.Dmoain.AggregatesModel.SalaryAggregate.salary Add(Salary.Dmoain.AggregatesModel.SalaryAggregate.salary Salary) { return(_context.Salary.Add(Salary).Entity); }