public async Task <ActionResult> Get([FromQuery] int page = 1, [FromQuery] int size = 25) { try { VerifyUser(); var query = _overtimeService.GetQuery(); return(Ok(query)); } 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)); } }