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); }
public Task <bool> Update(MongoAccount account) { throw new NotImplementedException(); }
public Task <string> Create(MongoAccount account) { throw new NotImplementedException(); }