Пример #1
0
    public static bool CadastrarCliente(string cpf, string rg, string nome, string nascimento, string telefone, string uf)
    {
        try
        {
            BluSoftService.Service.BluSoftService service = new BluSoftService.Service.BluSoftService();

            var cliente = new BluSoftService.Repository.Cliente();
            cliente.CPF            = cpf;
            cliente.RG             = rg;
            cliente.Nome           = nome;
            cliente.DataNascimento = Convert.ToDateTime(nascimento);
            cliente.Telefone       = telefone;
            cliente.UF             = uf;

            return(service.CadastrarCliente(cliente));
        }
        catch (Exception ex)
        {
            throw ex;
        }

        return(true);
    }