Exemplo n.º 1
0
 public bool RCMDetailRisk(RCMDetailRisk org)
 {
     try
     {
         entities.RCMDetailRisks.Add(org);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
        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);
            }
        }