public void SaveQuestion(UserQuestion userQuestion) { tbl_UserQuestions entity = new tbl_UserQuestions { CreatedBy="mobile", CreatedDate = DateTime.Now, Question = userQuestion.Question, UserId = userQuestion.UserId }; db.tbl_UserQuestions.AddObject(entity); db.SaveChanges(); }
public void SaveQuestion(UserQuestion userQuestion) { new UserQuestion().SaveQuestion(userQuestion); }