public async Task ReturnBooks(StudentBookDTO studentBookDTO) { await context.Database.ExecuteSqlRawAsync("ReturnBooks {0},{1}", new SqlParameter("@IdLector", studentBookDTO.IdLector), new SqlParameter("@IdLibro", studentBookDTO.IdLibro)); }
public async Task <ActionResult> ReturnBooks([FromBody] StudentBookDTO studentBookDTO) { await estudianteRepository.ReturnBooks(studentBookDTO); return(NoContent()); }