public async Task <IHttpActionResult> Get() { try { var result = await _repo.GetAllCommentsAsync(); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public async Task <IHttpActionResult> Get() { try { var result = await _repo.GetAllCommentsAsync(); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }