public ACM.Model.DeploymentPeriod DeploymentPeriodInquiry(ACM.Model.DeploymentPeriod request)
 {
     try
     {
         return(deploymentPeriodDAO.DeploymentPeriodInquiry(request));
     }
     catch (Exception ex)
     {
         Error.WriteException(TraceEventType.Error, ex.Message.ToString(), "DeploymentPeriodInquiry");
         throw;
     }
 }
        public string DeploymenPeriodModification(ACM.Model.DeploymentPeriod request)
        {
            string camMod;

            try
            {
                return(deploymentPeriodDAO.DeploymentModification(request));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
        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");
        }
 public List <ACM.Model.DeploymentPeriod> DeploymentPeriodInformation(ACM.Model.DeploymentPeriod request)
 {
     return(deploymentPeriodDAO.DeploymentPeriodInformation(request));
 }