public bool RegistroCliente(string cliente) { XmlSerializer ser = new XmlSerializer(typeof(Modelo.Cliente)); StringReader reader = new StringReader(cliente); Modelo.Cliente c = (Modelo.Cliente)ser.Deserialize(reader); ServicioCliente servicio = new ServicioCliente(); Datos.CLIENTE cDatos = new Datos.CLIENTE(); //Datos Cliente cDatos.RUT_CLIENTE = c.RUT_CLIENTE; cDatos.DV_CLIENTE = c.DV_CLIENTE; cDatos.DIRECCION_CLIENTE = c.DIRECCION_CLIENTE; cDatos.CORREO_CLIENTE = c.CORREO_CLIENTE; cDatos.TELEFONO_CLIENTE = c.TELEFONO_CLIENTE; cDatos.ID_COMUNA = c.ID_COMUNA; cDatos.ID_USUARIO = 0; cDatos.NOMBRE_CLIENTE = c.NOMBRE_CLIENTE; return(servicio.AgregarCliente(cDatos)); }
public bool InsertarCliente(Cliente entidad) { ServicioCliente srv = new ServicioCliente(); return(srv.AgregarCliente(entidad)); }