public async Task <ActionResult <Timelog> > Put(Guid id, [FromBody] Timelog timelog) { try { var result = timelogRepo.Retrieve().FirstOrDefault(x => x.LogID == id); if (result == null) { return(NotFound()); } await timelogRepo.UpdateAsync(id, timelog); return(Ok(timelog)); } catch (Exception) { return(BadRequest()); } }