public Worker CreateWorker(WorkerRequest Worker) { var entityToInsert = new Worker() { User = this.UserRepository.GetById(Worker.UserId) }; WorkerRepository.Insert(entityToInsert); return(entityToInsert); }
public Worker CreateWorker(WorkerRequest Worker) { var entityToInsert = new Worker() { User = this.UserRepository.GetById(Worker.UserId) }; WorkerRepository.Insert(entityToInsert); return(entityToInsert); }