public async Task <IActionResult> Create([Bind("Id,Text,SaysOnCorrectAnswer")] Encouragement encouragement) { if (ModelState.IsValid) { await _dataService.AddEncouragementAsync(encouragement); return(RedirectToAction(nameof(Index))); } return(View(encouragement)); }