Ejemplo n.º 1
0
        public void UpdateCertification(Certification certification)
        {
            Certification c = context.Certifications.Find(certification.Id);

            if (c != null)
            {
                context.Entry(c).State = EntityState.Modified;
                context.SaveChanges();
            }
        }
Ejemplo n.º 2
0
        public long InsertCertification(Certification certification)
        {
            context.Certifications.Add(certification);
            context.SaveChanges();

            return certification.Id;
        }