public ResponseViewModel PermitApprove(int id) { var permit = _permitService.GetPermitBy(id); if (permit == null) { return(NotFound(ResponseMessageViewModel.INVALID_PERMIT, ResponseErrorCodeStatus.INVALID_PERMIT)); } return(Ok(_permitService.ApprovePermit(id))); }