private async Task CopyToExistingEntity(int id, WorkerProfile newWorker) { Entities.WorkerProfile existingWorker = await GetExistingWorker(id); existingWorker.Name = newWorker.Name; CopyAddress(existingWorker.Address, newWorker.Address); existingWorker.Skills = newWorker.Skills; }
private bool BelongsToAnotherCreator(Entities.WorkerProfile worker, string?creator) { if (Exists(creator)) { return(worker.Creator != creator); } return(false); }