public async Task <IActionResult> GetTypes() { return(await ProcessAsync(async() => { var logNoteTypes = await _logNoteService.GetTypes(); return Ok(logNoteTypes); })); }
public async Task <IActionResult> GetTypes() { try { var logNoteTypes = await _logNoteService.GetTypes(); return(Ok(logNoteTypes)); } catch (Exception e) { return(HandleException(e)); } }