Ejemplo n.º 1
0
 /// <summary>
 /// Insert New Questions
 /// </summary>
 /// <param name="question">Instacne of Question</param>
 /// <returns>Success flag for Insertion success</returns>
 public bool AddQuestion(Question question)
 {
     question.AddedDate   = DateTime.Now;
     question.Description = question.Description ?? string.Empty;
     return(QuestionDataAccesor.AddQuestion(question));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Fetches Questions by Skill and User Id
 /// </summary>
 /// <param name="skillId">skill Id</param>
 /// <param name="userId">User Id</param>
 /// <returns>List Of Questions</returns>
 public List <Question> GetQuestionsBySkillAndUserId(int skillId, int userId)
 {
     return(QuestionDataAccesor.GetQuestionsBySkillAndUserId(skillId, userId));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Fetches Questions By User Id
 /// </summary>
 /// <param name="userId">User Id</param>
 /// <returns>List Of Questions</returns>
 public List <Question> GetQuestionsByUserId(int userId)
 {
     return(QuestionDataAccesor.GetQuestionsByUserId(userId));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Fetches Question By skill and Experience
 /// </summary>
 /// <param name="skillId">skill id</param>
 /// <param name="startExperience">Start Experience</param>
 /// <param name="endExperience">End Experience</param>
 /// <returns>List Of Questions</returns>
 public List <Question> GetQuestionsBySkillAndExperience(int skillId, int startExperience, int endExperience)
 {
     return(QuestionDataAccesor.GetQuestionsBySkillAndExperience(skillId, startExperience, endExperience));
 }