public IActionResult Put(int id, Presenca status) { try { banco.Aprovacao(id, status.Situacao); return(StatusCode(204)); } catch (Exception error) { return(BadRequest(error.Message.ToString())); } }
public IActionResult Put(int id, Presenca status) { try { banco.Aprovacao(id, status.Situacao); return(StatusCode(204)); } catch (Exception error) { return(BadRequest(error.Message.ToString())); } }