public IActionResult AddScientificNames(ScientificName scientific) { var name = _db.GetColors().FindAll(a => a.Name == scientific.Name).Count(); if (name == 0) { _db.AddName(scientific); return(RedirectToAction(nameof(GetScientificNames))); } ViewBag.Message = "already exists"; return(View()); }