public EmployeeInfo(int Id, string Name, string Gender, System.DateTime DOB, WCFClientApplication.EmployeeService.EmployeeType Type, int AnnualSalary, int HourlyPay, int HoursWorked) { this.Id = Id; this.Name = Name; this.Gender = Gender; this.DOB = DOB; this.Type = Type; this.AnnualSalary = AnnualSalary; this.HourlyPay = HourlyPay; this.HoursWorked = HoursWorked; }
public System.Threading.Tasks.Task SaveEmployeeAsync(int Id, string Name, string Gender, System.DateTime DOB, WCFClientApplication.EmployeeService.EmployeeType Type, int AnnualSalary, int HourlyPay, int HoursWorked) { WCFClientApplication.EmployeeService.EmployeeInfo inValue = new WCFClientApplication.EmployeeService.EmployeeInfo(); inValue.Id = Id; inValue.Name = Name; inValue.Gender = Gender; inValue.DOB = DOB; inValue.Type = Type; inValue.AnnualSalary = AnnualSalary; inValue.HourlyPay = HourlyPay; inValue.HoursWorked = HoursWorked; return(((WCFClientApplication.EmployeeService.IEmployeeService)(this)).SaveEmployeeAsync(inValue)); }
public int GetEmployee(string LicenseKey, int EmployeeId, out string Name, out string Gender, out System.DateTime DOB, out WCFClientApplication.EmployeeService.EmployeeType Type, out int AnnualSalary, out int HourlyPay, out int HoursWorked) { WCFClientApplication.EmployeeService.EmplpoyeeRequest inValue = new WCFClientApplication.EmployeeService.EmplpoyeeRequest(); inValue.LicenseKey = LicenseKey; inValue.EmployeeId = EmployeeId; WCFClientApplication.EmployeeService.EmployeeInfo retVal = ((WCFClientApplication.EmployeeService.IEmployeeService)(this)).GetEmployee(inValue); Name = retVal.Name; Gender = retVal.Gender; DOB = retVal.DOB; Type = retVal.Type; AnnualSalary = retVal.AnnualSalary; HourlyPay = retVal.HourlyPay; HoursWorked = retVal.HoursWorked; return(retVal.Id); }