Exemplo n.º 1
0
 public void InsertEmployeeAddress(EmployeeAddressDto employeeAddressObject)
 {
     InvokeService <IDemoServerServiceContract>(c =>
     {
         c.InsertEmployeeAddress(employeeAddressObject);
     });
 }
Exemplo n.º 2
0
 public SaveEmployeeCommand(string empName,
                            EmployeeAddressDto employeeAddress,
                            Guid departmentId)
 {
     EmpName         = empName;
     EmployeeAddress = employeeAddress;
     DepartmentId    = departmentId;
 }
Exemplo n.º 3
0
        internal static EmployeeAddressDto GetEntity(EmployeeAddress empAddress)
        {
            if (empAddress == null)
            {
                throw new ArgumentNullException("EmployeeAddress", "Mapping EmployeeAddressDto TO EmployeeAddress");
            }

            var empAddDto = new EmployeeAddressDto();

            empAddDto.Oid   = empAddress.Oid;
            empAddDto.EmpId = empAddress.EmpId;
            empAddDto.AddId = empAddress.AddId;

            return(empAddDto);
        }
 public void InsertEmployeeAddress(EmployeeAddressDto employeeAddressObject)
 {
     try
     {
         da.Insert <EmployeeAddress>(new EmployeeAddress()
         {
             Oid   = employeeAddressObject.Oid,
             EmpId = employeeAddressObject.EmpId,
             AddId = employeeAddressObject.AddId
         });
     }
     catch (Exception)
     {
         throw;
     }
 }