private static Employee LoadData(AccountInfoEditDTO data)
 {
     var employeeEntity = new Employee
     {
         EmployeeId = data.EmployeeId,
         ADName = data.UserName,
         AwardPayoutThreshold = data.PointPayoutThreshold
     };
     return employeeEntity;
 }
 public AccountInfoEditDTO Update(AccountInfoEditDTO data)
 {
     using (var ctx = new Entities())
     {
         ctx.Database.Connection.Open();
         ctx.Configuration.ValidateOnSaveEnabled = false;
         var saveEmployee = LoadData(data);
         ctx.Employees.Attach(saveEmployee);
         var objectState = ((IObjectContextAdapter)ctx).ObjectContext.ObjectStateManager;
         objectState.GetObjectStateEntry(saveEmployee).SetModifiedProperty("AwardPayoutThreshold");
         
         ctx.SaveChanges();
     }
     return data;
 }