public async Task <IActionResult> GetAll() { try { var result = await _service.FindAll(); return(Ok(result)); } catch (Exception e) { return(StatusCode(500, e)); } }
public async Task <IActionResult> GetAll() { try { var result = await _service.FindAll(); return(Ok(result)); } catch (Exception e) { return(StatusCode(500, e)); } }