public async Task <ActionResult> Get(int id) { try { VerifyUser(); var overtime = await _overtimeService.GetSingleById(id); return(Ok(overtime)); } catch (Exception e) { var result = new ResultFormatter(API_VERSION, General.INTERNAL_ERROR_STATUS_CODE, e.Message) .Fail(); return(StatusCode(General.INTERNAL_ERROR_STATUS_CODE, result)); } }