public bool AddTraining(Trainings trainings) { try { context.Trainings.Add(trainings); var result = context.SaveChanges(); if (result > 0) { return(true); } return(false); } catch (Exception) { throw; } }
public bool CreateSkill(MentorSkill mentorSkill) { try { context.MentorSkills.Add(mentorSkill); context.SaveChanges(); return(true); } catch (Exception) { throw; } }