/// <summary> /// Method to Save Employees. Once the Employee is added in the database /// it will be added in the Employees observable collection and Property Changed will be raised /// </summary> /// <param name="emp"></param> private void SaveEmployee(Employees emp) { this.EmpInfo.EmpNo = dataAccessService.CreateEmployee(emp); if (this.EmpInfo.EmpNo != 0) { this.Employees.Add(this.EmpInfo); this.RaisePropertyChanged("EmpInfo"); } }
void SaveEmployee(EmployeeInfo emp) { EmpInfo.EmpNo = _serviceProxy.CreateEmployee(emp); if (EmpInfo.EmpNo != 0) { Employees.Add(EmpInfo); RaisePropertyChanged("EmpInfo"); } }