// GET: Configuration/Create public async Task <ActionResult> CreateAsync(Config config) { if (ModelState.IsValid) { await configRepository.Insert(config); } return(View()); }