public async Task <IActionResult> Get(string id)
        {
            try
            {
                if (string.IsNullOrEmpty(id))
                {
                    return(BadRequest(ModelState));
                }

                var newemprestimo = await _emprestimoBusiness.FindById(Convert.ToInt32(id));

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

                return(Ok(newemprestimo));
            }
            catch (Exception e)
            {
                return(BadRequest($"{e.Message}"));
            }
        }