Beispiel #1
0
        private async Task <List <ValidaRequisicion> > ValidarRequisicionAsync(RequisicionPlazaViewModel requisicion)
        {
            var urlApi = this.configuracionGlobal.Configuration <string>("AutorizacionAPI");

            var response = await HttpRequestFactory.PutAsync($"{urlApi}/api/Autorizacion", requisicion)
                           .ConfigureAwait(false);

            var strResult = await response.Content.ReadAsStringAsync().ConfigureAwait(false);

            var validaciones = JsonConvert.DeserializeObject <List <ValidaRequisicion> >(strResult);

            return(validaciones);
        }