public MongoEmployee setAddEmployee(Employee x)
        {
            String   department = positionServices.getDepartmentByIdPosition((int)x.PositionId).DepartmentName;
            String   position   = positionServices.getPositionById((int)x.PositionId).PositionName;
            DateTime dateTime   = (DateTime)x.BirthDate;
            String   birthdate  = dateTime.Day + "/" + dateTime.Month + "/" + dateTime.Year;


            List <MongoSchedule> schedulesList = new List <MongoSchedule>();
            MongoAccount         acc           = new MongoAccount(x.AccountId.ToString(), x.Email, x.Email, "employee");

            Console.WriteLine("------------------------>" + acc.UserName);
            MongoEmployee emp = new MongoEmployee(x.EmployeeId.ToString(), x.FullName, x.Email, x.Address, x.PhoneNumber, position, department, "Hình nè", birthdate, acc, schedulesList);

            return(emp);
        }
示例#2
0
 public Task <bool> Update(MongoAccount account)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public Task <string> Create(MongoAccount account)
 {
     throw new NotImplementedException();
 }