private void urediOcjenuButton_Click(object sender, EventArgs e) { int ocjenaId = (int)ocjeneGridView.CurrentRow.Cells[0].Value; HttpResponseMessage response = _ocjeneService.GetResponse(ocjenaId.ToString()); OcjenaVM ocjena = response.Content.ReadAsAsync <OcjenaVM>().Result; Form frm = new IzmijeniOcjenuForm(ocjena); frm.Show(); Close(); }
private void izmijeniOcjenuButton_Click(object sender, EventArgs e) { int ocjenaId = Convert.ToInt32(ocjeneNaCasuGridView.CurrentRow.Cells["OcjenaId"].Value); HttpResponseMessage response = _ocjeneService.GetResponse(ocjenaId.ToString()); if (response.IsSuccessStatusCode) { OcjenaVM ocjena = response.Content.ReadAsAsync <OcjenaVM>().Result; Form frm = new IzmijeniOcjenuForm(ocjena); frm.Show(); } }