public ActionResult LoadColorCodes()
        {
            MainApplication model = new MainApplication();

            model.ColorCodeList   = _ColorCodeService.getAllColorCode();
            TempData["ColorList"] = model.ColorCodeList;
            return(View(model));
        }
        public JsonResult LoadColorCode()
        {
            MainApplication model = new MainApplication();

            model.ColorCodeList = _ColorCodeService.getAllColorCode();
            var data = model.ColorCodeList.Select(s => new SelectListItem()
            {
                Text  = s.colorName,
                Value = s.colorName
            });

            return(Json(data, JsonRequestBehavior.AllowGet));
        }