public ActionResult AddColour() { var colour = new NewColour(); colour.ColourGroups = cat.GetColourGroups(); return View(colour); }
public ActionResult AddColour(NewColour colour) { cat.AddNewColour(colour.Colour); cat.Save(); ViewBag.Message = "You have successfully added this colour:" + colour.Colour.Title; return View(colour); }