//update public Tuple <string, int> AnimeDatabase_Update_Description(AnimeDatabase_Description updatedDescription) { using (var context = new ADContext()) { context.Entry(updatedDescription).State = EntityState.Modified; return(new Tuple <string, int>(updatedDescription.description, context.SaveChanges())); } }
//add new public Tuple <string, int> AnimeDatabase_Add_Description(AnimeDatabase_Description newDescription) { using (var context = new ADContext()) { var newID = context.Description.Add(newDescription); context.SaveChanges(); return(new Tuple <string, int>(newDescription.description, newID.DescriptionID)); } }