public bool RCMDetailRisk(RCMDetailRisk org)
 {
     try
     {
         entities.RCMDetailRisks.Add(org);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public bool DeleteRCMDetailRisk(int mCustID)
 {
     try
     {
         RCMDetailRisk data = entities.RCMDetailRisks.Where(m => m.RCMDetailRiskID == mCustID).FirstOrDefault();
         entities.RCMDetailRisks.Remove(data);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
        public bool UpdateRCMDetailRisk(RCMDetailRisk org)
        {
            try
            {
                RCMDetailRisk data = entities.RCMDetailRisks.Where(m => m.RCMDetailRiskID == org.RCMDetailRiskID).FirstOrDefault();

                data.RiskControlMatrixID = org.RiskControlMatrixID;
                data.RiskName            = org.RiskName;
                data.Status = org.Status;


                entities.SaveChanges();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }