Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 private bool BelongsToAnotherCreator(Entities.WorkerProfile worker, string?creator)
 {
     if (Exists(creator))
     {
         return(worker.Creator != creator);
     }
     return(false);
 }