Exemplo n.º 1
0
        public IHttpActionResult Get(int id)
        {
            JournalServices journalService = CreateJournalService();
            var             journalEntry   = journalService.GetJournalEntryById(id);

            return(Ok(journalEntry));
        }
Exemplo n.º 2
0
        private JournalServices CreateJournalService()
        {
            var userId         = Guid.Parse(User.Identity.GetUserId());
            var journalService = new JournalServices(userId);

            return(journalService);
        }
Exemplo n.º 3
0
        public IHttpActionResult Get()
        {
            JournalServices journalService = CreateJournalService();
            var             journals       = journalService.GetJournalEntries();

            return(Ok(journals));
        }
Exemplo n.º 4
0
        public JournalForm()
        {
            InitializeComponent();

            _journalServices = new JournalServices();

            SeedTable(_journalServices.GetAll());

            DataSeeding();
        }