public async Task <IActionResult> CriarAsync([FromBody] EmprestimoDto dto) { await _service.CriarAsync(dto.DataEmprestimo, dto.DataVencimento, dto.LivroId, dto.UsuarioId); await UnitOfWork.CommitAsyc(); return(Ok()); }