public static SkillLists GetByID(int id) { using (DevContext ctx = new DevContext()) { return(ctx.SkillLists.Where(x => x.ID == id).First()); } }
public static List <SkillLists> GetForDeveloper(int?id) { using (DevContext ctx = new DevContext()) { return(ctx.Developers.Where(x => x.ID == id).First().Skills.ToList()); } }
public static List <SkillLists> GetAll() { using (DevContext ctx = new DevContext()) { return(ctx.SkillLists.ToList()); } }