public ActionResult CreateCurrency(CurrencyModel model) { if (ModelState.IsValid) { bool done = ClientDAL.AddCurrency(model); if (done) { ViewBag.Message = "Pridanie peňažnej meny bolo úspešné!"; } else { ViewBag.Message = "Nastala chyba! Pridanie peňažnej meny bolo neúspešné! Kontaktujte centrum pomoci."; return(View(model)); } model = new CurrencyModel(); ModelState.Clear(); } return(View(model)); }