Exemple #1
0
 public ActionResult Create(Currency currency)
 {
     if (ModelState.IsValid) {
         currencyRepository.InsertOrUpdate(currency);
         currencyRepository.Save();
         return RedirectToAction("Index");
     } else {
         return View();
     }
 }
Exemple #2
0
 public ViewResult Search(Currency searchCurrency)
 {
     if(searchCurrency!=null)
     {
                     }
                 return View("Index",currencyRepository.All);
 }