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