public bool UpdateRCMDetailRiskControl(RCMDetailRiskControl org)
        {
            try
            {
                RCMDetailRiskControl data = entities.RCMDetailRiskControls.Where(m => m.RCMDetailRiskControlID == org.RCMDetailRiskControlID).FirstOrDefault();

                data.RCMDetailRiskID = org.RCMDetailRiskID;
                data.ControlName     = org.ControlName;
                data.Status          = org.Status;


                data.RefNo = org.RefNo;
                data.Title = org.Title;

                data.Createria          = org.Createria;
                data.Impact             = org.Impact;
                data.ImpactValue        = org.ImpactValue;
                data.Cause              = org.Cause;
                data.Recommendation     = org.Recommendation;
                data.ManagementResponse = org.ManagementResponse;
                data.PIC           = org.PIC;
                data.FindingType   = org.FindingType;
                data.DueDate       = org.DueDate;
                data.CaseCloseBool = org.CaseCloseBool;
                data.CloseDate     = org.CloseDate;

                entities.SaveChanges();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
 public bool RCMDetailRiskControl(RCMDetailRiskControl org)
 {
     try
     {
         entities.RCMDetailRiskControls.Add(org);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public bool DeleteRCMDetailRiskControl(int mCustID)
 {
     try
     {
         RCMDetailRiskControl data = entities.RCMDetailRiskControls.Where(m => m.RCMDetailRiskControlID == mCustID).FirstOrDefault();
         entities.RCMDetailRiskControls.Remove(data);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }