Esempio n. 1
0
        private void BindGrid()
        {
            HttpResponseMessage response;

            if (prviBind)
            {
                response = revijeService.GetActionResponse22("RevijeByDatum", DateTime.MinValue.ToString("dd-MM-yyyy"), DateTime.MaxValue.ToString("dd-MM-yyyy"));
            }
            else
            {
                response = revijeService.GetActionResponse22("RevijeByDatum", odPicker.Value.ToString("dd-MM-yyyy"), doPicker.Value.ToString("dd-MM-yyyy"));
            }


            if (response.IsSuccessStatusCode)
            {
                dgAllRevije.AutoGenerateColumns = false;
                dgAllRevije.DataSource          = response.Content.ReadAsAsync <List <usp_RevijeByDatum_Result> >().Result;
                prviBind = false;
            }
        }