Ejemplo n.º 1
0
 public string AddSkills(Skills skills)
 {
     using (SkillTrackerDBContext db = new SkillTrackerDBContext())
     {
         db.SkillsCollection.Add(skills);
         db.SaveChanges();
     }
     return("Skills added successfully");
 }
Ejemplo n.º 2
0
 public bool AddAssociate(Associate associate)
 {
     using (SkillTrackerDBContext db = new SkillTrackerDBContext())
     {
         db.AssociateCollection.Add(associate);
         db.SaveChanges();
     }
     return(true);
 }