public void SubirImagen(string foto, string path) { try { BLL.BLLCliente bll = new BLL.BLLCliente(); bll.SubirImagen(foto, path); } catch (Exception ex) { throw new Exception(ex.Message); } }
public string ObtenerClientePorDNI(int dni) { BLL.BLLCliente bll = new BLL.BLLCliente(); BIZ.Cliente[] cliente = new BIZ.Cliente[2]; cliente[0] = bll.ObtenerClientePorDNI(dni); if (cliente[0].DniConyugue != null) { cliente[1] = bll.ObtenerClientePorDNI((int)cliente[0].DniConyugue); } return(Newtonsoft.Json.JsonConvert.SerializeObject(cliente)); }
public void CrearCliente(int?CUIT, int?DniConyuge, string Domicilio, int?EstadoCivil, DateTime FechaNacimiento, int?IngresoMensualAprox, string Nombre, int?DNI, int?Sexo, int?SituacionLaboral, int?TipoDocumento, int?Banco, int?dniTitular) { try { BLL.BLLCliente bll = new BLL.BLLCliente(); BIZ.Cliente Cliente = new BIZ.Cliente(); ClienteMapper(CUIT, DniConyuge, Domicilio, EstadoCivil, DNI, FechaNacimiento, IngresoMensualAprox, Nombre, Sexo, SituacionLaboral, Banco, Cliente); if (dniTitular == null) { bll.CrearClienteTitular(Cliente); } else { bll.CrearClienteConyuge(Cliente, dniTitular); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public string ObtenerImagen(string path) { BLL.BLLCliente bll = new BLL.BLLCliente(); return(bll.ObtenerImagen(path)); }