public JsonResult Update(ProjectViewModel model)
        {
            try
            {
                ProjectModel projectModel = projectBll.GetModel(model.ProjectID);
                projectModel.OrgID              = model.OrgID;
                projectModel.ProjectName        = model.ProjectName;
                projectModel.Tag                = model.Tag;
                projectModel.Description        = model.Description;
                projectModel.CostCenter         = model.CostCenter;
                projectModel.StartDate          = model.StartDate;
                projectModel.PlanGoLiveDate     = model.PlanGoLiveDate;
                projectModel.DueDate            = model.DueDate;
                projectModel.Department         = model.Department;
                projectModel.FunctionGroup      = model.FunctionGroup;
                projectModel.Workcell           = model.Workcell;
                projectModel.PM                 = model.PM;
                projectModel.SME                = model.SME;
                projectModel.Source             = model.Source;
                projectModel.Quarter            = model.Quarter;
                projectModel.Type               = model.Type;
                projectModel.Scope              = model.Scope;
                projectModel.Sponsor            = model.Sponsor;
                projectModel.IsMajor            = model.IsMajor;
                projectModel.ARSNo              = model.ARSNo;
                projectModel.Status             = model.Status;
                projectModel.Saving             = model.Saving;
                projectModel.EstimatedTime      = model.EstimatedTime;
                projectModel.InternalBudget     = model.InternalBudget;
                projectModel.ExternalBudget     = model.ExternalBudget;
                projectModel.ROI                = model.ROI;
                projectModel.Phase              = model.Phase;
                projectModel.CloseDate          = model.CloseDate;
                projectModel.ActualTime         = model.ActualTime;
                projectModel.ActualInternalCost = model.ActualInternalCost;
                projectModel.ActualExternalCost = model.ActualExternalCost;
                projectModel.ActualSaving       = model.ActualSaving;
                projectModel.DonePercent        = model.DonePercent;

                projectBll.Update(projectModel);
                return(Json(new { code = 200 }));
            }
            catch (Exception ex)
            {
                return(Json(new { code = 500, msg = ex.Message }));
            }
        }