public ActionResult Edit(int id, Limcurrencystructure model) { try { InitRepos(true, false); model.Currencies = currRepo.GetById(model.CurrencyId); limRepo.Update(model); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(Limcurrencystructure model) { try { // TODO: Add insert logic here InitRepos(true, false); model.Currencies = currRepo.GetById(model.CurrencyId); limRepo.Create(model); return(RedirectToAction("Index")); } catch { return(View()); } }