public ActionResult Color(SysColor model) { if (model != null && model.ColorID != 0) { _vmMsg = _dalSysColor.Update(model, Convert.ToInt32(Session["UserID"])); } else { _vmMsg = _dalSysColor.Save(model, Convert.ToInt32(Session["UserID"])); } return(Json(new { ColorID = _dalSysColor.GetColorID(), msg = _vmMsg })); }