Example #1
0
        public Worker CreateWorker(WorkerRequest Worker)
        {
            var entityToInsert = new Worker()
            {
                User = this.UserRepository.GetById(Worker.UserId)
            };

            WorkerRepository.Insert(entityToInsert);
            return(entityToInsert);
        }