public async Task <ActionResult <Timelog> > Get(Guid id) { try { var result = await timelogRepo.RetrieveAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception) { return(BadRequest()); } }
public async Task <ActionResult <Timelog> > Get(Guid id) { try { var result = await timelogRepo.RetrieveAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception) { return(BadRequest()); } }