public Fr_TopKnowAlls GetSingledataById(int Dc_Id) { var model = session.Get<Fr_TopKnowAlls>(Dc_Id); if (model == null) model = new Fr_TopKnowAlls(); return model; }
public void Update(Fr_TopKnowAlls data) { session.Update(data); session.Flush(); }