public ActionResult IzmeniStavkuKursneListe(StavkaKursneListeEditViewModel wm) { if (ModelState.IsValid == false) { Response.StatusCode = 400; return(PartialView("_IzmeniStavkuPartial", wm)); } try { ExchangeRepository.IzmeniStavkuKursneListe(wm.ValutaListe, wm.DatumListe, wm.Valuta, wm.KupovniKurs, wm.SrednjiKurs, wm.ProdajniKurs); return(new HttpStatusCodeResult(200)); } catch (Exception) { Response.StatusCode = 400; return(PartialView("_IzmeniStavkuPartial", wm)); } }