public JsonResult SaveCampaignMainFrame(ACM.Model.CampaignMainFrame cmpMainfram)
        {
            //  RedirectToAction("CampaignView");

            CampaignMainFrame campaignMainFrame = new CampaignMainFrame();

            campaignMainFrame = campaignServiceClient.CampaignMainframeInq(cmpMainfram);

            if (ModelState.IsValid)
            {
                if (campaignMainFrame == null)
                {
                    campaignServiceClient.CampaignMainFrameAdd(cmpMainfram);
                    return(Json(cmpMainfram));
                }
                else
                {
                    campaignServiceClient.CampaignMainFrameMod(cmpMainfram);
                    return(Json(cmpMainfram));
                }
            }
            else
            {
                IEnumerable <ModelError> errors = ModelState.Values.SelectMany(v => v.Errors);
                ViewBag.error = "Error in the form";
                return(Json(cmpMainfram, ViewBag.error));
            }
        }