示例#1
0
        public SummaryEntity GetSummary()
        {
            DAOBase dao = new DAOBase();
            string  serializedSummary = dao.ReadFile();

            return(JsonConvert.DeserializeObject <SummaryEntity>(serializedSummary));
        }
示例#2
0
        public void Insert(SummaryEntity summary)
        {
            string  serializesSummary = JsonConvert.SerializeObject(summary);
            DAOBase dao = new DAOBase();

            dao.WriteFile(serializesSummary);
        }