예제 #1
0
        public EditFaqModel GetEditFaqModel(Int64 FaqId, Int32 CommunityId)
        {
            EditFaqModel EFM = new EditFaqModel();

            EFM.Faq      = FAQ_Dal.GetFaq(FaqId);
            EFM.Category = FAQ_Dal.GetCategoriesList(CommunityId);
            return(EFM);
        }
예제 #2
0
        public EditFaqModel GetNewFaqModel(Int32 CommunityId)
        {
            EditFaqModel EFM    = new EditFaqModel();
            Faq          NewFaq = new Faq();

            NewFaq.Question     = "";
            NewFaq.Answer       = "";
            NewFaq.CommunityId  = CommunityId;
            NewFaq.onCategories = new List <Category>();
            EFM.Faq             = NewFaq;

            EFM.Category = FAQ_Dal.GetCategoriesList(CommunityId);
            //EFM.Faq = FAQ_Dal.GetFaq(FaqId);
            //EFM.Category = FAQ_Dal.GetCategoriesList(CommunityId);
            return(EFM);
        }