public static List <QuestionBankViewModel> GetQuestionBankList() { List <QuestionBankViewModel> QList = new List <QuestionBankViewModel>(); QuestionBankDAL.GetQuestionsList().ForEach(q => QList.Add(new QuestionBankViewModel(q))); return(QList); }
public QuestionBankViewModel(QuestionBankDAL Q) { _Id = Q.QuestionBanks.Id; _Question = Q.QuestionBanks.Question; _Entity_Order = Q.QuestionBanks.Entity_Order; _Category_Id = Q.QuestionBanks.Category_Id; }
public APIResponse UpdateQuestionBank(QuestionBankDetail questionsDetails) { APIResponse aPIResponse = new APIResponse(); QuestionBankDAL questionBankDAL = new QuestionBankDAL(); aPIResponse = questionBankDAL.UpdateQuestionBank(questionsDetails); return(aPIResponse); }
public APIResponse QuestionBankUpload(QuestionBankDetail questionsDetailsData) { APIResponse aPIResponse = new APIResponse(); QuestionBankDAL questionBankDAL = new QuestionBankDAL(); aPIResponse = questionBankDAL.QuestionBankUpload(questionsDetailsData); return(aPIResponse); }
public void Create() { QuestionBankDAL Q = new QuestionBankDAL(); Q.QuestionBanks.Id = _Id; Q.QuestionBanks.Question = _Question; Q.QuestionBanks.Category_Id = _Category_Id; Q.QuestionBanks.Entity_Order = _Entity_Order; Q.Create(); _Id = Q.QuestionBanks.Id; }
public void Update() { QuestionBankDAL Q = new QuestionBankDAL(_Id); if (!string.IsNullOrEmpty(_Question)) { Q.QuestionBanks.Question = _Question; } if (_Entity_Order != null) { Q.QuestionBanks.Entity_Order = _Entity_Order; } if (_Category_Id != null) { Q.QuestionBanks.Category_Id = _Category_Id; } Q.Update(); }
public static IEnumerable GetQuestionComboList() { return(QuestionBankDAL.GetQuestionsComboList()); }
public void Delete() { QuestionBankDAL Q = new QuestionBankDAL(_Id); Q.Delete(); }
public QuestionBankBLL() { _questionBankDAL = new QuestionBankDAL(); }