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

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

            dao.WriteFile(serializesSummary);
        }