public Quiz_category Add(Quiz_category quiz_Category) { context.quiz_Categories.Add(quiz_Category); context.SaveChanges(); return(quiz_Category); throw new NotImplementedException(); }
public Quiz_category Delete(int Id) { Quiz_category quiz_Category = context.quiz_Categories.Find(Id); if (quiz_Category != null) { context.quiz_Categories.Remove(quiz_Category); context.SaveChanges(); } return(quiz_Category); throw new NotImplementedException(); }