public List <UserStory> DeleteUserStory(UserStory oldUS) { var userStory = (from us in dataContext.UserStories where us.UserStoryID == oldUS.UserStoryID select us).SingleOrDefault(); dataContext.UserStories.Remove(userStory); dataContext.SaveChanges(); return(GetAllUserStories()); }
public List <UserStory> InsertUserStory(UserStory us) { dataContext.UserStories.Add(us); dataContext.SaveChanges(); return(GetAllUserStories()); }