public async Task <IActionResult> Update(Emprestimo obj)
        {
            try
            {
                if (obj == null)
                {
                    return(BadRequest());
                }

                var newemprestimo = await _emprestimoBusiness.FindById(obj.Id);

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

                var putEmprestimo = await _emprestimoBusiness.Update(obj);

                return(CreatedAtRoute("GetByIdEditora", new { id = putEmprestimo.Id }, putEmprestimo));
            }
            catch (Exception e)
            {
                return(BadRequest($"{e.Message}"));
            }
        }