public async Task UpdateAsync(ActorUi actorUi) { var existedEntity = await _actorRepository.FindByAsync(e => e.Id == actorUi.Id); if (existedEntity == null) { throw new ArgumentException($"Actor with id : {actorUi.Id} not found"); } existedEntity.LastName = actorUi.LastName; existedEntity.FirstName = actorUi.FirstName; existedEntity.Birthday = actorUi.Birthday; await _actorRepository.EditAsync(existedEntity); }