public async Task <bool> GetVerificaAgendamento(AgendaSalaModel agendaSalaModel) { try { bool agendado = (await _agendaSalaProvider.GetVerificaAgendamento(agendaSalaModel)); return(agendado); } catch (Exception ex) { throw new Exception(ex.Message); } }
public async Task <bool> GetVerificaAgendamento(AgendaSalaModel agendaSalaModel) { var response = await _agendaSalaProvider.GetVerificaAgendamento(agendaSalaModel); var jsonResponse = await response.Content.ReadAsStringAsync(); if (!response.IsSuccessStatusCode || jsonResponse.Contains("false")) { return(false); } return(true); }