public static int CreateOrUpdateQuestion(QuestionModel questionModel) { try { var question = ModelMapper.MapFromQuestionModel(questionModel); return(SQLAdapter.AddOrUpdateQuestion(question)); } catch (Exception e) { return(-1); } }
public static int CreateOrUpdateQuestion(QuestionModel questionModel) { try { var question = ModelMapper.MapFromQuestionModel(questionModel); return(SQLAdapter.AddOrUpdateQuestion(question)); } catch (Exception e) { return(-1); } }