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); }
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); }