Example #1
0
        public async Task <IActionResult> GetTypes()
        {
            return(await ProcessAsync(async() =>
            {
                var logNoteTypes = await _logNoteService.GetTypes();

                return Ok(logNoteTypes);
            }));
        }
Example #2
0
        public async Task <IActionResult> GetTypes()
        {
            try
            {
                var logNoteTypes = await _logNoteService.GetTypes();

                return(Ok(logNoteTypes));
            }
            catch (Exception e)
            {
                return(HandleException(e));
            }
        }