public async Task <IActionResult> Create([Bind(properties)] CurrencyView c) { await validateId(c.IsoCode, ModelState); if (!ModelState.IsValid) { return(View(c)); } var o = CurrencyFactory.Create(c.IsoCode, c.Name, c.Symbol, c.ValidFrom, c.ValidTo); await reporitory.AddObject(o); return(RedirectToAction("Index")); }