public string ClienteParticular(string p_id, string p_direccion, int p_telefono, string p_email, string p_nombreCompleto) { ClienteParticularEN clienteParticularEN = null; string oid; //Initialized ClienteParticularEN clienteParticularEN = new ClienteParticularEN (); clienteParticularEN.Id = p_id; clienteParticularEN.Direccion = p_direccion; clienteParticularEN.Telefono = p_telefono; clienteParticularEN.Email = p_email; clienteParticularEN.NombreCompleto = p_nombreCompleto; //Call to ClienteParticularCAD oid = _IClienteParticularCAD.ClienteParticular (clienteParticularEN); return oid; }
public string ClienteParticular(ClienteParticularEN clienteParticular) { try { SessionInitializeTransaction (); session.Save (clienteParticular); SessionCommit (); } catch (Exception ex) { SessionRollBack (); if (ex is InfoCosteProgramaGenNHibernate.Exceptions.ModelException) throw ex; throw new InfoCosteProgramaGenNHibernate.Exceptions.DataLayerException ("Error in ClienteParticularCAD.", ex); } finally { SessionClose (); } return clienteParticular.Id; }
public ClienteParticularEN(ClienteParticularEN clienteParticular) { this.init (clienteParticular.Id, clienteParticular.Direccion, clienteParticular.Telefono, clienteParticular.Email, clienteParticular.ParteIntervencion, clienteParticular.PedidoCliente, clienteParticular.NombreCompleto); }