public async Task <IActionResult> GetByCPF(string cpf)
        {
            var item = await ContaRepo.Find(cpf);

            if (item == null)
            {
                return(NotFound());
            }
            return(Ok(item));
        }
        public async Task <IActionResult> Update(string id, [FromBody] Conta.DTO.Conta item)
        {
            if (item == null)
            {
                return(BadRequest());
            }
            var contactObj = await ContaRepo.Find(id);

            if (contactObj == null)
            {
                return(NotFound());
            }
            await ContaRepo.Update(item);

            return(CreatedAtRoute("GetConta", new { Controller = "Conta", cpf = item.CPF }, item));
        }
        public async Task <IActionResult> GetAllByCPF(string cpf)
        {
            var item = await ContaRepo.Find(cpf);

            if (item == null)
            {
                return(NotFound());
            }

            var operacoes = await OperacaoRepo.Find(item.ID_Conta);

            if (operacoes != null)
            {
                item.Operacoes = operacoes;
            }
            return(Ok(item));
        }