public JsonResult SaveDeploymentPeriod(ACM.Model.DeploymentPeriod deploymentperiod)
        {
            //return RedirectToAction("DeploymentPeriodDashboard");
            try
            {
                if (ModelState.IsValid)
                {
                    if (deploymentperiod.DeploymentPeriodId == 0)
                    {
                        deploymentperiod.CreatedDate = DateTime.Now;
                        DeploymentPeriodBO deploymentPeriodBO = new DeploymentPeriodBO();
                        deploymentPeriodBO.DeploymentPeriodAdd(deploymentperiod);
                       // return RedirectToRoute("DeploymentPeriodDashboard");
                    //    return RedirectToAction("DeploymentPeriodDashboard","DeploymentPeriod");
                       // return Json(deploymentperiod);
                        return Json(deploymentperiod);
                    }
                    else
                    {
                        deploymentperiod.ModifiedDate  = DateTime.Now ;
                        DeploymentPeriodBO deploymentPeriodBO = new DeploymentPeriodBO();
                      //  deploymentPeriodBO.DeploymentPeriodAdd(deploymentperiod);
                       // deploymentperiod = deploymentPeriodBO.DeploymentPeriodInquiry(deploymentperiod);
                        //deploymentperiod.Closed = "N";
                        //deploymentperiod.Status = "Open";
                         deploymentPeriodBO.DeploymenPeriodModification (deploymentperiod);
                       //  return RedirectToRoute("DeploymentPeriodDashboard");
                   //     return RedirectToAction("DeploymentPeriodDashboard","DeploymentPeriod");
                   //     return Json(deploymentperiod);
                     //    return RedirectToAction("DeploymentPeriodDashboard", "DeploymentPeriod");
                         return Json(deploymentperiod);

                    }
                }
                else
                {
                    IEnumerable<ModelError> errors = ModelState.Values.SelectMany(v => v.Errors);
                    return Json(errors);
                }
            }
            catch (Exception ex)
            {
                return Json("Error");
            }
              //  return Json(Url.Action("DeploymentPeriodDashboard", "DeploymentPeriod"));

               // return RedirectToAction("DeploymentPeriodDashboard", "DeploymentPeriod");
        }