public async Task <bool> Handle(UpdateSalaryCommand request, CancellationToken cancellationToken) { var salaryInDb = await _Repository.GetAsync(request.Id); salaryInDb.UpdateSalary(request.Salary); _Repository.Update(salaryInDb); return(await _Repository.UnitOfWork.SaveEntitiesAsync(cancellationToken)); }