public IActionResult Edit(int id, Colors colors) { if (id != colors.Id) { return(ViewBag.Message = "Invalid Id"); } _db.EditColor(colors); return(RedirectToAction(nameof(Colors))); }