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

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

            dao.WriteFile(serializesSummary);
        }